陪我精神损失费!(呐喊)

This commit is contained in:
shenjack 2024-11-04 01:18:01 +08:00
parent 122c6f7e89
commit 5dd410b5dc
Signed by: shenjack
GPG Key ID: 7B1134A979775551

18
main.py
View File

@ -282,24 +282,6 @@ def loading():
root.mainloop()
def log(content, rate):
...
# if rate == "info":
# logging.info(content)
# elif rate == "warning":
# logging.warning(content)
# elif rate == "error":
# logging.error(content)
# else:
# logging.error("日志评级不正确,记录内容为:" + content)
# with open(CONFIG_PATH, "a+", encoding="utf-8") as f:
# a = f.readlines()
# for x in range(len(a)):
# if "日志处理后sha256" in a[x]:
# del f.readlines()[x]
# f.write("日志处理后sha256:" + file_sha256(r"support/journal.log"))
def on_button_click(content, need_pwd: bool = False):
wait_window = tkinter.Toplevel(root)
wait_window.wm_attributes("-topmost", 1)