def dispatch_event(self, *args): if not self._enable_event_queue or self._allow_dispatch_event: EventDispatcher.dispatch_event(self, *args) else: self._event_queue.append(args)
def dispatch_event(self, *args): if not self._enable_event_queue or self._allow_dispatch_event: EventDispatcher.dispatch_event(self, *args) else: self._event_queue.append(args)
def dispatch_pending_events(self): while self._event_queue: event = self._event_queue.popleft() # pyglame event EventDispatcher.dispatch_event(self, *event)
def dispatch_pending_events(self): while self._event_queue: event = self._event_queue.popleft() # pyglame event EventDispatcher.dispatch_event(self, *event)