尝试解决窗口自动关闭但失败

This commit is contained in:
cxykevin 2024-02-12 13:42:23 +08:00
parent efbd54b52b
commit 6e9ebb328d
1 changed files with 2 additions and 2 deletions

View File

@ -86,5 +86,5 @@ try:
except Exception as exp: # 未知错误 except Exception as exp: # 未知错误
log.break_err("Exception \n"+str(traceback.format_exc(exp))) log.break_err("Exception \n"+str(traceback.format_exc(exp)))
raise exp raise exp
print("This window will close after 3 seconds.") print("This window will close.")
time.sleep(3) sys.exit(0)