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):
28162816 def resize (self , w , h ):
28172817 """For GUI backends, resize the window (in physical pixels)."""
28182818
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-
28362819 def get_window_title (self ):
28372820 """
28382821 Return the title text of the window containing the figure, or None
You can’t perform that action at this time.
0 commit comments