Set the child `~.axes.Axes` which is grabbing the mouse events. Usually called by the widgets themselves. It is an error to call this if the mouse is already grabbed by another Axes.
(self, ax)
| 1923 | return axes |
| 1924 | |
| 1925 | def grab_mouse(self, ax): |
| 1926 | """ |
| 1927 | Set the child `~.axes.Axes` which is grabbing the mouse events. |
| 1928 | |
| 1929 | Usually called by the widgets themselves. It is an error to call this |
| 1930 | if the mouse is already grabbed by another Axes. |
| 1931 | """ |
| 1932 | if self.mouse_grabber not in (None, ax): |
| 1933 | raise RuntimeError("Another Axes already grabs mouse input") |
| 1934 | self.mouse_grabber = ax |
| 1935 | |
| 1936 | def release_mouse(self, ax): |
| 1937 | """ |
no outgoing calls