def checkEvents(self): for e in pygame.event.get(): if e.type == QUIT: self.quit = 1 reactor.stop() elif e.type == KEYUP and e.key == K_ESCAPE: self.quit = 1 reactor.stop()
def error(self): log.msg('error, stopping reactor') reactor.stop()
def join_failed(self, why): t = why.type #print "t", t, type(t) #print "check", why.check(PygameServerError) #print " failed:", why.get_errorMessage() reactor.stop()
def finish(self): reactor.stop()