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

MNT: be more careful in Qt backend that there is actually a Figure #27245

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

tacaswell
Copy link
Member

PR summary

In mpl_gui we are being more proactive about breaking circular references when closing a GUI window so that it is possible for a FigureCanvasQt to be in a state where the figure attribute is None.

In that case short-circuit return in the UI events.

@tacaswell tacaswell added this to the v3.9.0 milestone Nov 1, 2023
in mpl_gui we are being more proactive about breaking circular references when
closing a GUI window so that it is possible for a FigureCanvasQt to be in a
state where the figure attribute is None.

In that case short-circuit return in the UI events.
@timhoffm timhoffm merged commit b3c4a79 into matplotlib:main Nov 1, 2023
39 of 40 checks passed
@tacaswell tacaswell deleted the mnt/qt_caution branch November 1, 2023 22:36
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.

None yet

4 participants