2023/8/25 update
This commit is contained in:
10
update.pyw
10
update.pyw
@@ -14,15 +14,16 @@ ml = os.getcwd()
|
|||||||
|
|
||||||
def quit_exe():
|
def quit_exe():
|
||||||
root.destroy()
|
root.destroy()
|
||||||
'''def update_now():
|
def update_now():
|
||||||
webbrowser.open("https://kgithub.com/dengrb1/chatgpt/releases/")
|
webbrowser.open("https://kgithub.com/dengrb1/chatgpt/releases/")
|
||||||
messagebox.showinfo('update', '请选择最新版本并下载运行安装程序,然后就可以更新了!')
|
messagebox.showinfo('update', '请选择最新版本并下载运行安装程序,然后就可以更新了!')
|
||||||
'''
|
'''def downloads_update_now():
|
||||||
def downloads_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")
|
os.startfile("downloads_update_now")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
messagebox.showerror(':( error','在线更新模块错误:文件不存在')
|
messagebox.showerror(':( error','在线更新模块错误:文件不存在')
|
||||||
|
'''
|
||||||
|
|
||||||
|
|
||||||
# Label
|
# Label
|
||||||
@@ -61,10 +62,9 @@ text_box.configure(state='disabled')
|
|||||||
|
|
||||||
# Button
|
# Button
|
||||||
quit_bt = Button(root, text='返回', command=quit_exe).pack()
|
quit_bt = Button(root, text='返回', command=quit_exe).pack()
|
||||||
update_now_bt = Button(root, text='在线更新', command=downloads_update_now).pack()
|
update_now_bt = Button(root, text='在线更新', command=update_now).pack()
|
||||||
|
|
||||||
# mainloop
|
# mainloop
|
||||||
root.title('更新日志')
|
root.title('更新日志')
|
||||||
root.geometry('355x250+400+400')
|
root.geometry('355x250+400+400')
|
||||||
downloads_update_now()
|
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
|||||||
Reference in New Issue
Block a user