def manageTime(self): t=Time() if self.clock==None: self.clock=ClockThread(t.getCurrentTime(),self.pool.getTime())#obtiene el tiempo actual self.connect(self.clock,SIGNAL("timeOver()"),self.timeEnding) else: self.clock.setStartTime(t.getCurrentTime()) #manda a ejecutar un hilo que consultara el tiempo self.clock.start()
def manageTime(self): t=Time()#este objeto permite extraer el tiempo actual del sistema if self.clock==None: #se envia al hilo el tiempo actual y el maximo tiempo de espera self.clock=ClockThread(t.getCurrentTime(),self.pool.getTime())#obtiene el tiempo actual self.connect(self.clock,SIGNAL("timeOver()"),self.timeEnding) else: self.clock.setMaxTime(self.pool.getTime()) self.clock.setStartTime(t.getCurrentTime()) #manda a ejecutar un hilo que consultara el tiempo self.clock.start()