Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port Workbench from Pyface to Apptools #331

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

corranwebster
Copy link
Contributor

@corranwebster corranwebster commented Mar 23, 2023

This is a move of the workbench code from Pyface to Apptools. The top-level changes are:

  • pyface.workbench -> apptools.workbench
  • pyface.ui.*.workbench -> apptools.workbench.ui.* (I could be talked into just apptools.workbench.* like TraitsUI)
  • examples.workbench in Pyface repo added to examples.workbench in this repo
  • adds some tests run under PySide6 and Wx

Toolkit management is done by using a pyface.base_toolkit.Toolkit with the name derived from the pyface.toolkit.toolkit (which handles toolkit selection) and pointing at the appropriate subpackage.

This doesn't attempt to do anything to the Workbench code in Envisage. There is an argument it should be in here as well. We have circular dependencies between the two libraries, and it's not clear which should be "lower-level"

Other than that, changes are around import targets and a little bit of delayed importing because I was seeing circular imports after applying isort...

Checklist

  • Add a news fragment if this PR is news-worthy for end users. (see docs/releases/README.rst)
  • Check examples work
  • Run tests under different backends

@corranwebster
Copy link
Contributor Author

Currently not working with an actual toolkit.

@corranwebster corranwebster marked this pull request as ready for review May 22, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant