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