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)
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)