def micelo(self): self.gestor = GestorMicElo.GestorMicElo(self) resp = WEngines.select_engine_micelo(self.gestor, self.configuracion.miceloActivo()) if resp: respT = QTVarios.vtime(self.main_window, minMinutos=3, minSegundos=0, maxMinutos=999, maxSegundos=999) if respT: minutos, segundos = respT self.gestor.inicio(resp, minutos, segundos)
def micelo(self): self.manager = ManagerMicElo.ManagerMicElo(self) resp = WEngines.select_engine_micelo(self.manager, self.configuration.miceloActivo()) if resp: respT = QTVarios.vtime(self.main_window, minMinutos=1, minSegundos=0, maxMinutos=999, maxSegundos=999) if respT: minutos, segundos = respT self.manager.start(resp, minutos, segundos)
def micelo(self): self.manager = ManagerMicElo.ManagerMicElo(self) resp = WEngines.select_engine_micelo(self.manager, self.configuration.miceloActivo()) if resp: key = "MICELO_TIME" dic = self.configuration.read_variables(key) default_minutes = dic.get("MINUTES", 10) default_seconds = dic.get("SECONDS", 0) respT = QTVarios.vtime( self.main_window, minMinutos=1, minSegundos=0, maxMinutos=999, maxSegundos=999, default_minutes=default_minutes, default_seconds=default_seconds, ) if respT: minutos, seconds = respT dic = {"MINUTES": minutos, "SECONDS": seconds} self.configuration.write_variables(key, dic) self.manager.start(resp, minutos, seconds)