Пример #1
0
 def trigger_event(self, event_channel):
     EventModule.post(EventModule.Event(pygame.USEREVENT, channel=event_channel))
Пример #2
0
def postTwistedEvent(func):
    # if not using pygame.fastevent, this can explode if the queue
    # fills up.. so that's bad.  Use pygame.fastevent, in pygame CVS
    # as of 2005-04-18.
    eventmodule.post(eventmodule.Event(TWISTEDEVENT, iterateTwisted=func))