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

Method set_cursor

PySimpleGUI/PySimpleGUI.py:12165–12180  ·  view source on GitHub ↗

Sets the cursor for the window. If you do not want any mouse pointer, then use the string "none" :param cursor: The tkinter cursor name :type cursor: (str)

(self, cursor)

Source from the content-addressed store, hash-verified

12163 return self.TKrootDestroyed
12164
12165 def set_cursor(self, cursor):
12166 """
12167 Sets the cursor for the window.
12168 If you do not want any mouse pointer, then use the string "none"
12169
12170 :param cursor: The tkinter cursor name
12171 :type cursor: (str)
12172 """
12173
12174 if not self._is_window_created('tried Window.set_cursor'):
12175 return
12176 try:
12177 self.TKroot.config(cursor=cursor)
12178 except Exception as e:
12179 print('Warning bad cursor specified ', cursor)
12180 print(e)
12181
12182 def ding(self, display_number=0):
12183 """

Callers 11

Demo_Cursors.pyFile · 0.45
create_windowFunction · 0.45
_display_notificationFunction · 0.45
main_open_github_issueFunction · 0.45
display_notificationFunction · 0.45
__init__Method · 0.45
mainFunction · 0.45
mainFunction · 0.45
notifyMethod · 0.45
main_sdk_helpFunction · 0.45

Calls 1

_is_window_createdMethod · 0.95

Tested by

no test coverage detected