Mouse functions

class mouse

The mouse class is used to collect mouse input.

Example:

# Draw a 'fixation-dot mouse cursor' until a button is clickedmy_mouse=mouse()my_canvas=canvas()whileTrue:button,position,timestamp=my_mouse.get_click(timeout=20)ifbuttonisnotNone:break(x,y),time=my_mouse.get_pos()my_canvas.clear()my_canvas.fixdot(x,y)my_canvas.show()