def show_cursor(): props = WindowProperties() props.setCursorHidden(False) # set the filename to the mouse cursor # at the time the realization is valid for Windows only win = "assets/gui/Cursor.cur" props.setCursorFilename(win) base.win.requestProperties(props)
def show_cursor(): """set the Cursor visible again""" props = WindowProperties() props.setCursorHidden(False) # set the filename to the mouse cursor x11 = "Cursor.x11" win = "Cursor.ico" if sys.platform.startswith("linux"): props.setCursorFilename(x11) else: props.setCursorFilename(win) base.win.requestProperties(props)
def show_cursor(): """set the Cursor visible again""" props = WindowProperties() props.setCursorHidden(False) # set the filename to the mouse cursor cursors = ["cursorRed", "cursorBlue", "cursorViolet", "cursorGreen"] cursor = random.choice(cursors) x11 = "cursors/{}.x11".format(cursor) win = "cursors/{}.ico".format(cursor) if sys.platform.startswith("linux"): props.setCursorFilename(x11) else: props.setCursorFilename(win) base.win.requestProperties(props)