陪我精神损失费!(呐喊)
This commit is contained in:
parent
122c6f7e89
commit
5dd410b5dc
18
main.py
18
main.py
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user