Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 def error(self):
     log.msg('error, stopping reactor')
     reactor.stop()
Exemplo n.º 3
0
 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()
Exemplo n.º 4
0
 def finish(self):
     reactor.stop()