-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Finish deprecating idle_event; style cleanups to backend_bases #8454
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
The corresponding event had been deprecated since 1.5.
@@ -1363,12 +1354,12 @@ def __init__(self, name, canvas, guiEvent=None): | |||
self.guiEvent = guiEvent | |||
|
|||
|
|||
@cbook.deprecated("2.1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this deprecation warning have some more information? (eg. along the lines of 'idle_event is deprecated. Use the animations module instead.')
Would it also be worth putting in a what's new entry, saying this is deprecated and pointing people to what to use instead?
@@ -1982,6 +1953,7 @@ def enter_notify_event(self, guiEvent=None, xy=None): | |||
event = Event('figure_enter_event', self, guiEvent) | |||
self.callbacks.process('figure_enter_event', event) | |||
|
|||
@cbook.deprecated("2.1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto my above comments
Actually the main entry point (connecting to "idle_event") already has a deprecation warning with a pointer to the animations module since 1.5 (http://matplotlib.org/api/api_changes.html?highlight=idle_event#deprecated-idle-event, https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backend_bases.py#L2352) so I don't think another pointer is needed here. |
One final question; should this be targeted to |
2.1 is not released yet so it's OK to say "deprecated since 2.1". It's not a removal date. |
🤦♂️ I keep forgetting that, sorry... |
All's in the title.