Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def dispatch_pending_events(self):
     while self._event_queue:
         event = self._event_queue.popleft()
         # pyglame event
         EventDispatcher.dispatch_event(self, *event)
Exemplo n.º 4
0
 def dispatch_pending_events(self):
     while self._event_queue:
         event = self._event_queue.popleft()
         # pyglame event
         EventDispatcher.dispatch_event(self, *event)