예제 #1
0
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)
예제 #2
0
파일: helper.py 프로젝트: grimfang/owp_ajaw
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)
예제 #3
0
파일: helper.py 프로젝트: grimfang/owp_ajaw
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)
예제 #4
0
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)