Finish deprecating idle_event; style cleanups to backend_bases#8454
Finish deprecating idle_event; style cleanups to backend_bases#8454dstansby merged 2 commits intomatplotlib:masterfrom
Conversation
The corresponding event had been deprecated since 1.5.
| self.guiEvent = guiEvent | ||
|
|
||
|
|
||
| @cbook.deprecated("2.1") |
There was a problem hiding this comment.
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?
| event = Event('figure_enter_event', self, guiEvent) | ||
| self.callbacks.process('figure_enter_event', event) | ||
|
|
||
| @cbook.deprecated("2.1") |
|
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.