def Restart(name): global last_schedule if last_schedule == "": print("没有绑定具体的计划文件。") return mysch = Schedule(last_schedule, None) mysch.restart(name)
def ClearError(name): global last_schedule if last_schedule == "": print("没有绑定具体的计划文件。") return mysch = Schedule(last_schedule, None) mysch.clear_error(name)
def ContinueSchedule(): global SCH, last_schedule, PCR if PCR is None: StartPCR() if SCH is not None: raise Exception("Schedule已经运行,请先关闭!") SCH = Schedule(last_schedule, PCR) SCH.run_continue() RunningInput()
def CheckState(): global SCH, last_schedule if last_schedule == "": print("没有绑定具体的计划文件。") return if SCH is None: mysch = Schedule(last_schedule, None) mysch.show_schedule(True) else: SCH.show_schedule()
def FirstSchedule(): global SCH, last_schedule, PCR if PCR is None: StartPCR() if SCH is not None: raise Exception("Schedule已经运行,请先关闭!") if auto_start_app: Start_App() SCH = Schedule(last_schedule, PCR) SCH.run_first_time() RunningInput()