Skip to content

Commit d257c13

Browse files
committed
Deprecate unused FigureManagerBase.show_popup.
1 parent 0ddae6e commit d257c13

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

doc/api/api_changes/2017-12-02-AL.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Deprecations
2+
````````````
3+
The unused ``FigureManagerBase.show_popup`` method is deprecated.

doc/devel/MEP/MEP27.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ The description of this MEP gives us most of the solution:
114114
+--------------------------------------+------------------------------+---------------------+--------------------------------+
115115
|key_press |key_press | | |
116116
+--------------------------------------+------------------------------+---------------------+--------------------------------+
117-
|show_popup |show_poup | |Not used anywhere in mpl, and |
118-
| | | |does nothing. |
119-
+--------------------------------------+------------------------------+---------------------+--------------------------------+
120117
|get_window_title | |get_window_title | |
121118
+--------------------------------------+------------------------------+---------------------+--------------------------------+
122119
|set_window_title | |set_window_title | |

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,6 +2696,7 @@ def key_press(self, event):
26962696
if rcParams['toolbar'] != 'toolmanager':
26972697
key_press_handler(event, self.canvas, self.canvas.toolbar)
26982698

2699+
@cbook.deprecated("2.2")
26992700
def show_popup(self, msg):
27002701
"""Display message in a popup -- GUI only."""
27012702

0 commit comments

Comments
 (0)