(self, source, condition, handle=None)
return True
Check keyboard event has all the right buttons pressed.
Check keyboard event has all the right buttons pressed.
Check keyboard event has all the right buttons pressed .
def _check_event(self, source, condition, handle=None):
        """ Check keyboard event has all the right buttons pressed. """
        handle = handle or self.root.display
        for _ in range(0, handle.pending_events()):
            event = handle.next_event()
            if event.type == X.KeyPress:
                command = self.keys[event.detail]
                self._handle_event(command)
        return True
def _check_event ( self , source , condition , handle = None ) : handle = handle or self . root . display for _ in range ( 0 , handle . pending_events ( ) ) : event = handle . next_event ( ) if event . type == X . KeyPress : command = self . keys [ event . detail ] self . _handle_event ( command ) return True