This commit is contained in:
dengrb1 2023-05-26 17:19:38 +08:00 committed by GitHub
parent 09af622168
commit 61736e53eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,10 +13,11 @@ ml = os.getcwd()
def quit_exe():
root.destroy()
def update_now():
if os.path.exists(os.path.join(ml, "downloads_update_now.exe")):
'''if os.path.exists(os.path.join(ml, "downloads_update_now.exe")):
os.startfile("downloads_update_now.exe")
else:
messagebox.showerror('error','错误:文件不存在')
messagebox.showerror('error','错误:文件不存在')'''
messagebox.showerror('update', '在线更新模块正在更新,请以后再试吧')
# Label
update_now_bt = Button(root ,text='在线更新', command=update_now).pack(side=RIGHT)