def __init__(self):
     from twisted.internet import reactor
     from twisted.internet.task import LoopingCall
     self.reactor = reactor
     connection = self.reactor.connectTCP('localhost', 8000, factory)
     self.loopingCall = LoopingCall(self.iterate)
     pygame_test.prepare()
 def __init__(self):
     self.keepGoing = True
     self.reactor = SelectReactor()
     installReactor(self.reactor)
     connection = self.reactor.connectTCP('localhost', 8000, factory)
     self.reactor.startRunning()
     self.futureCall = None
     self.futureCallTimeout = None
     pygame_test.prepare()
 def __init__(self):
     SelectReactor.__init__(self)
     connection = self.connectTCP('localhost', 8000, factory)
     pygame_test.prepare()
     installReactor(self)