pyface: traits-capable windowing framework
This is a major release which removes a number of things which have been deprecated for a number of years. The most significant change in this release is that the Qt toolkit backend has been moved from the pyface.ui.qt4
package to the pyface.ui.qt
package. The "qt4" namespace had been an ongoing source of confusion as Qt5 and Qt6 became the most popular versions of Qt in use. Because this change has the potential to cause significant backwards compatibility issues, this release includes import hooks to continue to support imports from pyface.ui.qt4...
which can be enabled by:
ETS_TOOLKIT
or ETSConfig.toolkit
values.ETS_QT4_IMPORT
environment variable to a non-empty valuesys.meta_path
In particular the environment variables allow users of ETS-based applications such as Mayavi to continue to use those applications with newer versions of Pyface until there is time to update their code to the new import locations.
Additionally this release uses the module-level __getattr__
system introduced in Python 3.7 to delay imports from the api
modules which have side-effects, particularly toolkit selection. This means that you can, for example, import pyface.api
and toolkit selection will be deferred until you actually request a class or object which is toolkit-dependent. Part of this included adding formal interfaces for ActionManager
and its subclasses
In addition this release:
pyface.qt
, such as pyface.qt.QtWidgets
.api
modules.Thanks to:
pyface.ui.qt4
to pyface.ui.qt
(#1223, #1228)api
modules; new interfaces for
ActionManager
and its subclasses (#1229)confirm
function (#1221)api
modules and other improvemnts to api
modules
(#1220, #1222, #1229)GUI
invoke_later
and
set_trait_later
on Qt (#1226)exec
instead of exec_
where possible (#1208)setup.py
and use pyproject.toml
(#1203, #1214)This is a quick bugfix release that resolves some issues with the 7.4.3 release on CI for downstream projects. The issues were on testing code, and so shouldn't impact application code or behaviour.
This is a bugfix release that collects a number of additional issues discovered and fixed since the 7.4.2 release. Among the fixes, this pins PySide6 to less than 6.4.0, as 6.4 has breaking changes in it.
This is a bugfix release that collects a number of additional issues discovered and fixed since the 7.4.1 release.
Thanks to:
This is a bugfix release that fixes an issue that was causing memory corruption and occasional segfaults when using the new ArrayImage and PILImage classes on Windows with PySide2.
Thanks to:
This release features some significant refactoring and reorganisation of the Pyface API aimed at making it generally more coherent. Specific changes include:
__init__
method. This was done by a small minority of Widget classes,
now all widgets are able to use two-step creation (first the
instance, then the toolkit object via the create() method).All changes should be backwards compatible, and deprecated APIs have a clear path forward.
Additionally, this release adds experimental support for Qt 6 in the pyface.qt
API. Downstream packages can use the "pyqt6" and "pyside6" values for
QT_API
and CI is being run and passing with PySide6. We generally plan to
move the default development environment to Python 3.8 and PySide6 over the
next few months.
Corresponding to this, PyQt4 support is deprecated, CI is no longer being run for PyQt4 (which has been at end-of-life since 2015) and remaining support for PyQt4 will be removed in the next major release.
Thanks to:
The most significant change introduced in this minor release is the
replacement of Traits on_trait_change
-based listeners with the new Traits
observation framework.
This release is only compatible with Traits >= 6.2.0 i.e. the most recent version of Traits.
on_trait_change
with observe
.Thanks to:
Fixes
Documentation
pyface.tasks
submodules. (#844)pyface.undo
and
pyface.undo.action
submodules. (#847)pyface.action
and
pyface.tasks.action
submodules. (#843)Build, Tests and Continuous Integration
python_requires
to support Python >= 3.6. (#850)Maintenance and code reorganization
traits
on_trait_change
with observe
. (#892, #882,
#881, #880, #870, #864)traits.api
where possible. (#866)Pyface 7.2.0 is a minor release which introduces a variety of bug fixes, documentation updates, and other code maintenance. The most significant change introduced by this release is the addition of undo/redo functionality from the undo subpackage copied from apptools.
This release should still be compatible with Traits 6.0+. Users are encouraged to upgrade to Traits 6.1+ to stay current as future releases of Pyface will stop supporting Traits 6.0.
undo <pyface.undo>
subpackage that has been copied over from
apptools (soon to be deprecated in apptools)Thanks to:
Features
Fixes
Build and continuous integration
Documentation
Maintenance and code organization
Pyface 7.1.0 introduces a few new features and fixes to deprecation warnings. There are also internal cleanups to Qt signal connection logic that should be invisible to users.
A new pyface.data_view
subpackage has been introduced to support visualization of hierarchical and non-hierarchical tabular data. See Pyface DataViews section of the user manual for an introduction. Additional examples are also added to the source distribution. Please note that as of this release the API is provisional.
A new pyface.color.Color
class and a corresponding pyface.ui_traits.PyfaceColor
trait type have been
introduced to support representing colors via a toolkit independent API. See Trait Types section of the user manual for further details.
More than 70 PRs went into this release. Thanks to: Aaron Ayres, Ieva Cernyte, Mark Dickinson, Kit Yan Choi, Rahul Poruri, Corran Webster
Note that the following list is not exhaustive. Some PRs references have been omitted.
Features
pyface.data_view
subpackage for visualizing hierarchical and non-hierarchical data. (#619, #661, #682, #683, #694, #709)Color
and PyfaceColor
trait type. (#608, #710, #703)Fixes
Build and continuous integration
Documentation
Maintenance and code organization
This is a bugfix release which fixes a number of minor issues with the 7.0.0 release.
Thanks to: Aaron Ayres, Kit Choi, Rahul Poruri, Pedro Rivotti, Corran Webster.