def trigger_event(self, event_channel): EventModule.post(EventModule.Event(pygame.USEREVENT, channel=event_channel))
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))