Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Disconnect SubplotTool destroyer callback on tool_fig close #25158

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

Conversation

richardsheridan
Copy link
Contributor

PR Summary

Fixes #24395.

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

@tacaswell
Copy link
Member

For those following at home the problem sequence is:

  • make (tk) figure
  • open the parameter adjustment window (this adds a callback to close child window when the main window is closed)
  • close the parameter adjustment window
  • close the main window (which complains it can not close the already closed parameter window)

The fix is to remove the callback that closes the parameter window when the parameter window is closed.

@tacaswell tacaswell added this to the v3.7.0 milestone Feb 6, 2023
@ksunden ksunden merged commit 5eb3988 into matplotlib:main Feb 6, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Feb 6, 2023
@richardsheridan richardsheridan deleted the 24395-any-resizing-of-the-plot-after-pltshow-results-in-an-error-when-closing-the-window branch February 6, 2023 15:53
ksunden added a commit that referenced this pull request Feb 7, 2023
…158-on-v3.7.x

Backport PR #25158 on branch v3.7.x (Disconnect SubplotTool destroyer callback on tool_fig close)
@ksunden ksunden mentioned this pull request Feb 20, 2023
6 tasks
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.

Any resizing of the plot after plt.show results in an error when closing the window
3 participants