8000 Backport PR #9187 on branch v2.1.x by lumberbot-app[bot] · Pull Request #9216 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Backport PR #9187 on branch v2.1.x #9216

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
Sep 22, 2017
Merged

Conversation

lumberbot-app[bot]
Copy link
@lumberbot-app lumberbot-app bot commented Sep 22, 2017

Backport PR #9187: Fix wx_compat code for wxPython >= 4.0.0b2

PR Summary

Some arg names in wx.ToolBar.AddTool are being changed in order to be more consistent with other tool methods, and also for better compatibility with Classic. This change trips up the code in wx_compat since it is using keyword args when calling AddTool. This PR is one possible fix. Another would be to not use the keyword args and just use positional args since the order and types have not changed.

See: wxWidgets/Phoenix#527

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 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

<!--Thank you so much for your PR! To help us review, fill out the form
to the best of your ability.  Please make use of the development guide at
https://matplotlib.org/devdocs/devel/index.html-->

<!--Provide a general summary of your changes in the title above, for
example "Raises ValueError on Non-Numeric Input to set_xlim".  Please avoid
non-descriptive titles such as "Addresses issue  8576".-->

<!--If you are able to do so, please do not create the
PR out of master, but out of a separate branch.  See
https://matplotlib.org/devel/gitwash/development_workflow.html for
instructions.-->

   PR Summary

Some arg names in `wx.ToolBar.AddTool` are being changed in order to be more consistent with other tool methods, and also for better compatibility with Classic. This change trips up the code in `wx_compat` since it is using keyword args when calling `AddTool`. This PR is one possible fix. Another would be to not use the keyword args and just use positional args since the order and types have not changed.

<!--If it fixes an open issue, please link to the issue here.-->

See: wxWidgets/Phoenix#527

   PR Checklist

- [ ] Has Pytest style unit tests
- [x] Code is PEP 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

<!--We understand that PRs can sometimes be overwhelming, especially as the
reviews start coming in.  Please let us know if the reviews are unclear or the
recommended next step seems overly demanding , or if you would like help in
addressing a reviewer's comments.  And please ping us if you've been waiting
too long to hear back on your PR.-->
@lumberbot-app lumberbot-app bot added this to the 2.1 (next point release) milestone Sep 22, 2017
@lumberbot-app lumberbot-app bot added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Sep 22, 2017
@tacaswell tacaswell merged commit a1f635f into v2.1.x Sep 22, 2017
@tacaswell tacaswell deleted the auto-backport-of-pr-9187 branch September 22, 2017 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

1 participant
0