Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix frame capture when using PyQt6 (#43)
See #40 (comment), #42 (comment) These failures were caused by an intervening frame in QtPy when using the Qt6 backend, because QtPy replaced some removed functions in the Qt5->Qt6 transition with their own implementations: https://github.com/spyder-ide/qtpy/blob/1d2a1eae43bda2a3d0efef605cafc5462389ec03/qtpy/QtWidgets.py#L69-L105 Therefore, when looking for "first frame in the call stack that is not in napari", the frame capture code would stop in QtPy. By adding QtPy to the list of ignored prefixes, this PR fixes the issue in the Qt6 case.
- Loading branch information