def mouse_press_event(self, x, y, button):
        """Reports left and right mouse button presses + position"""
        if button == 1:
            print("Left mouse button pressed @", x, y)
        if button == 2:
            print("Right mouse button pressed @", x, y)
def mouse_press_event ( self , x , y , button ) : if button == 1 : print ( "Left mouse button pressed @" , x , y ) if button == 2 : print ( "Right mouse button pressed @" , x , y )
Reports left and right mouse button presses + position