def start_cycle(self): if not Settings.cycle_running: try: self.Cycle_Thread = Threads.Cycle() self.Cycle_Thread.started.connect(lambda: UI_Update.cycle_start(self)) self.Cycle_Thread.finished.connect(lambda: UI_Update.cycle_end(self)) self.Cycle_Thread.start() except Exception as e: print(e) else: Settings.cycle_running = False
def start_cycle(self): if not Settings.cycle_running: try: Settings.cycle_time = self.powerCycle_spinBox.value() self.Cycle_Thread = Threads.Cycle() self.Cycle_Thread.started.connect( lambda: UI_Update.cycle_update(self)) self.Cycle_Thread.start() except Exception as e: print(e) else: Settings.cycle_running = False UI_Update.cycle_update(self)
def start_cycle(self): if not Settings.cycle_running: try: self.Cycle_Thread = Threads.Cycle() self.Cycle_Thread.started.connect( lambda: UI_Update.cycle_start(self)) self.Cycle_Thread.finished.connect( lambda: UI_Update.cycle_end(self)) self.Cycle_Thread.start() except Exception as e: print(e, "cycle failure, please contact Jerry for support") else: Settings.cycle_running = False