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

Skip to content

Don't assume tk canvas have a manager attached. #14568

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

Merged
merged 1 commit into from
Jun 19, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jun 18, 2019

PR Summary

Closes #1219 (specifically #1219 (comment)).
Release critical, because a regression.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@anntzer anntzer added Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. GUI: tk labels Jun 18, 2019
@anntzer anntzer added this to the v3.1.1 milestone Jun 18, 2019
@efiring
Copy link
Member

efiring commented Jun 19, 2019

I just tripped over this myself.

Copy link
Member

@efiring efiring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite understand why so much indirection is needed here--I suspect it means some methods should be free-standing functions--but this fix looks like it will solve the immediate problem.

@efiring efiring merged commit f0290cc into matplotlib:master Jun 19, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jun 19, 2019
@anntzer anntzer deleted the tkmanager branch June 19, 2019 07:26
timhoffm added a commit that referenced this pull request Jun 19, 2019
…568-on-v3.1.x

Backport PR #14568 on branch v3.1.x (Don't assume tk canvas have a manager attached.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI: tk Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show fails on figures created with the object-oriented system
3 participants