Skip to content

Commit f53f5e9

Browse files
authored
Merge pull request #15538 from meeseeksmachine/auto-backport-of-pr-15535-on-v3.2.x
Backport PR #15535 on branch v3.2.x (Avoid really long lines in event handling docs.)
2 parents 7c458af + 2783e4e commit f53f5e9

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

doc/users/event_handling.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,24 @@ Here are the events that you can connect to, the class instances that
5959
are sent back to you when the event occurs, and the event descriptions:
6060

6161

62-
======================= =============================================================================================
63-
Event name Class and description
64-
======================= =============================================================================================
65-
'button_press_event' :class:`~matplotlib.backend_bases.MouseEvent` - mouse button is pressed
66-
'button_release_event' :class:`~matplotlib.backend_bases.MouseEvent` - mouse button is released
67-
'close_event' :class:`~matplotlib.backend_bases.CloseEvent` - a figure is closed
68-
'draw_event' :class:`~matplotlib.backend_bases.DrawEvent` - canvas draw (but before screen update)
69-
'key_press_event' :class:`~matplotlib.backend_bases.KeyEvent` - key is pressed
70-
'key_release_event' :class:`~matplotlib.backend_bases.KeyEvent` - key is released
71-
'motion_notify_event' :class:`~matplotlib.backend_bases.MouseEvent` - mouse motion
72-
'pick_event' :class:`~matplotlib.backend_bases.PickEvent` - an object in the canvas is selected
73-
'resize_event' :class:`~matplotlib.backend_bases.ResizeEvent` - figure canvas is resized
74-
'scroll_event' :class:`~matplotlib.backend_bases.MouseEvent` - mouse scroll wheel is rolled
75-
'figure_enter_event' :class:`~matplotlib.backend_bases.LocationEvent` - mouse enters a new figure
76-
'figure_leave_event' :class:`~matplotlib.backend_bases.LocationEvent` - mouse leaves a figure
77-
'axes_enter_event' :class:`~matplotlib.backend_bases.LocationEvent` - mouse enters a new axes
78-
'axes_leave_event' :class:`~matplotlib.backend_bases.LocationEvent` - mouse leaves an axes
79-
======================= =============================================================================================
62+
====================== ================ ======================================
63+
Event name Class Description
64+
====================== ================ ======================================
65+
'button_press_event' `.MouseEvent` mouse button is pressed
66+
'button_release_event' `.MouseEvent` mouse button is released
67+
'close_event' `.CloseEvent` a figure is closed
68+
'draw_event' `.DrawEvent` canvas draw (but before screen update)
69+
'key_press_event' `.KeyEvent` key is pressed
70+
'key_release_event' `.KeyEvent` key is released
71+
'motion_notify_event' `.MouseEvent` mouse motion
72+
'pick_event' `.PickEvent` an object in the canvas is selected
73+
'resize_event' `.ResizeEvent` figure canvas is resized
74+
'scroll_event' `.MouseEvent` mouse scroll wheel is rolled
75+
'figure_enter_event' `.LocationEvent` mouse enters a new figure
76+
'figure_leave_event' `.LocationEvent` mouse leaves a figure
77+
'axes_enter_event' `.LocationEvent` mouse enters a new axes
78+
'axes_leave_event' `.LocationEvent` mouse leaves an axes
79+
====================== ================ ======================================
8080

8181
.. _event-attributes:
8282

0 commit comments

Comments
 (0)