File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed
doc/api/next_api_changes/removals Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change
1
+ ``key_press `` and ``button_press `` have been removed from FigureManager
2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
+
4
+ Trigger the events directly on the canvas using
5
+ ``canvas.callbacks.process(event.name, event) `` for key and button events.
Original file line number Diff line number Diff line change @@ -2816,23 +2816,6 @@ def full_screen_toggle(self):
2816
2816
def resize (self , w , h ):
2817
2817
"""For GUI backends, resize the window (in physical pixels)."""
2818
2818
2819
- @_api .deprecated (
2820
- "3.4" , alternative = "self.canvas.callbacks.process(event.name, event)" )
2821
- def key_press (self , event ):
2822
- """
2823
- Implement the default Matplotlib key bindings defined at
2824
- :ref:`key-event-handling`.
2825
- """
2826
- if rcParams ['toolbar' ] != 'toolmanager' :
2827
- key_press_handler (event )
2828
-
2829
- @_api .deprecated (
2830
- "3.4" , alternative = "self.canvas.callbacks.process(event.name, event)" )
2831
- def button_press (self , event ):
2832
- """The default Matplotlib button actions for extra mouse buttons."""
2833
- if rcParams ['toolbar' ] != 'toolmanager' :
2834
- button_press_handler (event )
2835
-
2836
2819
def get_window_title (self ):
2837
2820
"""
2838
2821
Return the title text of the window containing the figure, or None
You can’t perform that action at this time.
0 commit comments