Example #1
0
 def on_mouse_release(self, x, y, button, modifiers):
     print >> self.file, 'on_mouse_release(x=%d, y=%d, button=%r, '\
                         'modifiers=%s)' % (x, y,
         mouse.buttons_string(button), key.modifiers_string(modifiers))
Example #2
0
 def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers):
     print >> self.file, 'on_mouse_drag(x=%d, y=%d, dx=%d, dy=%d, '\
                         'buttons=%s, modifiers=%s)' % (
           x, y, dx, dy,
           mouse.buttons_string(buttons), key.modifiers_string(modifiers))