示例#1
0
def on_mouse_motion(x, y, dx, dy):
    """ 当鼠标没有按下时移动的时候触发 """
    mouse.x, mouse.y = x, y
    mouse.move()
    window.update_caption(mouse)
示例#2
0
def on_mouse_drag(x, y, dx, dy, buttons, modifiers):
    """ 当鼠标按下并且移动的时候触发 """
    mouse.x, mouse.y = x, y
    mouse.move()
示例#3
0
文件: event.py 项目: youngxz/pyleap
def on_mouse_motion(x, y, dx, dy):
    mouse.x, mouse.y = x, y
    mouse.move()
    window.update_caption(mouse)
示例#4
0
文件: event.py 项目: youngxz/pyleap
def on_mouse_drag(x, y, dx, dy, buttons, modifiers):
    mouse.x, mouse.y = x, y
    mouse.move()
示例#5
0
文件: event.py 项目: xuyanpeng/pyleap
def on_mouse_motion(x, y, dx, dy):
    """ 当鼠标没有按下时移动的时候触发 """
    mouse.x, mouse.y = x, y
    mouse.move()
    window.update_caption(mouse)
示例#6
0
文件: event.py 项目: xuyanpeng/pyleap
def on_mouse_drag(x, y, dx, dy, buttons, modifiers):
    """ 当鼠标按下并且移动的时候触发 """
    mouse.x, mouse.y = x, y
    mouse.move()