Ejemplo n.º 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))
Ejemplo n.º 2
0
 def on_key_press(self, symbol, modifiers):
     print >> self.file, 'on_key_press(symbol=%s, modifiers=%s)' % (
         key.symbol_string(symbol), key.modifiers_string(modifiers))
Ejemplo n.º 3
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))