Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: add
%gui
support for Qt6 (#1054)
* Initial notes * ENH: Support for `PyQt6` and `PySide6`. - Distinguish between specific version requests and the generic one. - Use a `QEventLoop` instance to properly keep windows open between event loop calls. This is "instrumented" with print statements to follow the flow * Move `Qt` importing to client side This way import errors show up in the client, not the kernel. * Bring in some changes by @tacaswell See d5d718b * Remove diagnostic `print` statements * Move last version check up * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Remove unused import * These seem to run fine in Windows. * TST: Qt event loop logic * Fix "Test Minimum Versions" CI test * Use `IPython` constants and version check. Importing a second version of Qt is not allowed. `IPython` silently ignores requests for different versions; we want `enable_gui` to raise an exception so the user can see it. * Add two Qt versions to test matrix * Improved logic * get coverage on windows back * more targeted windows skip * rename symbol in test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
- Loading branch information
1 parent
9b434e9
commit fbea757
Showing
3 changed files
with
262 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.