def bye(self): if self._task_mgr.has_alive_task(): info("有任务在后台运行, 退出请直接关闭窗口") else: config.work_id = self._work_id exit_cmd(0)
def bye(self): if self._task_mgr.has_alive_task(): info(f"有任务在后台运行, 退出请直接关闭窗口") else: exit_cmd(0)