Gebruikmakend van de code onder de cursor is het hele systeem veranderd hoewel ik moet herstellen naar de pijlcursor onder het programma afsluiten. Als er andere betere manieren zijn, zou ik uw reactie op prijs stellen.
from ctypes import *
import win32con
SetSystemCursor = windll.user32.SetSystemCursor #reference to function
SetSystemCursor.restype = c_int #return
SetSystemCursor.argtype = [c_int, c_int] #arguments
LoadCursorFromFile = windll.user32.LoadCursorFromFileA #reference to function
LoadCursorFromFile.restype = c_int #return
LoadCursorFromFile.argtype = c_char_p #arguments
CursorPath = "../cursor/MyCross.cur"
NewCursor = LoadCursorFromFile(CursorPath)
if NewCursor is None:
print "Error loading the cursor"
elif SetSystemCursor(NewCursor, win32con.IDC_ARROW) == 0:
print "Error in setting the cursor"