MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_cursor

Method set_cursor

lib/matplotlib/backend_bases.py:1946–1962  ·  view source on GitHub ↗

Set the current cursor. This may have no effect if the backend does not display anything. If required by the backend, this method should trigger an update in the backend event loop after the cursor is set, as this method may be called e.g. before a long-run

(self, cursor)

Source from the content-addressed store, hash-verified

1944 self.mouse_grabber = None
1945
1946 def set_cursor(self, cursor):
1947 """
1948 Set the current cursor.
1949
1950 This may have no effect if the backend does not display anything.
1951
1952 If required by the backend, this method should trigger an update in
1953 the backend event loop after the cursor is set, as this method may be
1954 called e.g. before a long-running task during which the GUI is not
1955 updated.
1956
1957 Parameters
1958 ----------
1959 cursor : `.Cursors`
1960 The cursor to display over the canvas. Note: some backends may
1961 change the cursor for the entire window.
1962 """
1963
1964 def draw(self, *args, **kwargs):
1965 """

Callers 5

_set_cursor_cbkMethod · 0.45
_set_cursorMethod · 0.45
_update_cursorMethod · 0.45
hoverFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected