def run(self):
	clock = pygame.time.Clock()
        self.reactor.callLater(20, stupidTest)
        while self.keepGoing:
            timeChange = clock.tick(FRAMES_PER_SECOND)
            if self.futureCall:
                self.futureCallTimeout -= timeChange
                print 'future call in', self.futureCallTimeout
                if self.futureCallTimeout <= 0:
                    self.futureCall()
                    self.futureCallTimeout = None
                    self.futureCall= None
            retval = pygame_test.iterate()
            if retval == False:
                thingInControl.stop()
            self.iterate()
 def iterate(self):
     print 'looping call controller in iterate'
     retval = pygame_test.iterate()
     if retval == False:
         thingInControl.stop()
 def doIteration(self, delay):
     print 'calling doIteration'
     SelectReactor.doIteration(self,delay)
     retval = pygame_test.iterate()
     if retval == False:
         thingInControl.stop()