8000 TkAgg bugfix: deselect buttons that are not the current _Mode by richardsheridan · Pull Request #18395 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

TkAgg bugfix: deselect buttons that are not the current _Mode #18395

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 2 commits into from
Sep 9, 2020

Conversation

richardsheridan
Copy link
Contributor
@richardsheridan richardsheridan commented Sep 2, 2020

PR Summary

Fixes a bug where Tk Checkbutton states can become disconnected from the NavigationToolbar2Tk._Mode when the user doesn't carefully e.g. uncheck zoom before checking pan. The core concept was copied from the QT navbar.

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and pydocstyle<4 and run flake8 --docstring-convention=all).
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

@QuLogic QuLogic added the GUI: tk label Sep 2, 2020
@QuLogic QuLogic added this to the v3.3.2 milestone Sep 4, 2020
@tacaswell tacaswell merged commit bd765e0 into matplotlib:master Sep 9, 2020
@tacaswell
Copy link
Member

Thanks @richardsheridan !

@lumberbot-app
Copy link
lumberbot-app bot commented Sep 9, 2020

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
$ git checkout v3.3.x
$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 bd765e00ae407399964680f86d71ee38700730ca
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #18395: TkAgg bugfix: deselect buttons that are not the current _Mode'
  1. Push to a named branch :
git push YOURFORK v3.3.x:auto-backport-of-pr-18395-on-v3.3.x
  1. Create a PR against branch v3.3.x, I would have named this PR:

"Backport PR #18395 on branch v3.3.x"

And apply the correct labels and milestones.

Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon!

If these instruction are inaccurate, feel free to suggest an improvement.

tacaswell added a commit to tacaswell/matplotlib that referenced this pull request Sep 9, 2020
… not the current _Mode

Merge pull request matplotlib#18395 from richardsheridan/multi-toggle-fix

FIX: deselect buttons that are not the current _Mode
QuLogic pushed a commit to QuLogic/matplotlib that referenced this pull request Sep 9, 2020
QuLogic added a commit that referenced this pull request Sep 9, 2020
…-v3.3.x

Backport PR #18395: TkAgg bugfix: deselect buttons that are not the current _Mode
@richardsheridan richardsheridan deleted the multi-toggle-fix branch September 9, 2020 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0