Beispiel #1
0
def on_mouse_motion(x, y, dx, dy):
    """ 当鼠标没有按下时移动的时候触发 """
    mouse.x, mouse.y = x, y
    mouse.move()
    window.update_caption(mouse)
Beispiel #2
0
def on_mouse_drag(x, y, dx, dy, buttons, modifiers):
    """ 当鼠标按下并且移动的时候触发 """
    mouse.x, mouse.y = x, y
    mouse.move()
Beispiel #3
0
def on_mouse_motion(x, y, dx, dy):
    mouse.x, mouse.y = x, y
    mouse.move()
    window.update_caption(mouse)
Beispiel #4
0
def on_mouse_drag(x, y, dx, dy, buttons, modifiers):
    mouse.x, mouse.y = x, y
    mouse.move()
Beispiel #5
0
def on_mouse_motion(x, y, dx, dy):
    """ 当鼠标没有按下时移动的时候触发 """
    mouse.x, mouse.y = x, y
    mouse.move()
    window.update_caption(mouse)
Beispiel #6
0
def on_mouse_drag(x, y, dx, dy, buttons, modifiers):
    """ 当鼠标按下并且移动的时候触发 """
    mouse.x, mouse.y = x, y
    mouse.move()