def resume_pom(self): """ Method to resume a pomodoro. """ #print("llama a resumir") #debug control self.estado = "START" self.arrancar(self.tiempo) global e e = KThread(target = self.contador) e.start() self.interr = 0
def iniciar_pom(self): """ Method to start a pomodoro. If it's already started it will be interrupted and started again. """ #print("llama a iniciar") #debug control if(self.estado =="START"): self.interrupt_pom() self.segundos_trans = 0 #reboot the seconds self.estado = "START" self.arrancar(self.tiempo) global e e = KThread(target = self.contador) e.start() self.interr = 0