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