Ejemplo n.º 1
0
 def do_key_press_event(self, event):
   if TheMouse.over:
     TheMouse.over.do_key_press_event(event)
   elif TheMouse.active:
     TheMouse.active.do_key_press_event(event)
   elif event.string and event.string == 'p':
     self.paused = not self.paused
   else:
     CairoDrawingArea.do_key_press_event(self, event)
Ejemplo n.º 2
0
 def do_key_press_event(self, event):
   if self.focus:
     self.focus.do_key_press_event(event)
   else:
     CairoDrawingArea.do_key_press_event(self, event)