pip-helper/update.py

36 lines
1.1 KiB
Python
Raw Permalink Normal View History

2023-05-06 13:33:53 +08:00
"""基本上,这个文件都是已经提前写好了下一个版本的内容的
之后几天基本上都会发布最新版本的内容的"""
2023-04-07 23:17:25 +08:00
from tkinter import *
2023-05-05 12:18:46 +08:00
from tkinter.scrolledtext import ScrolledText
2023-05-06 13:33:53 +08:00
import webbrowser
from tkinter import messagebox
2023-04-07 23:17:25 +08:00
2023-05-06 13:33:53 +08:00
root = Tk()
2023-04-07 23:17:25 +08:00
2023-05-06 13:33:53 +08:00
def quit_exe():
root.destroy()
def update_now():
webbrowser.open("https://kgithub.com/dengrb1/chatgpt/releases/")
messagebox.showinfo('update', '请选择最新版本并下载运行安装程序,然后就可以更新了!')
2023-04-07 23:17:25 +08:00
2023-05-06 13:33:53 +08:00
# Label
update_now_bt = Button(root ,text='在线更新', command=update_now).pack(side=RIGHT)
quit_bt = Button(root, text='返回', command=quit_exe).pack(side=RIGHT)
Label(root, text='更新日志').pack()
text = '''0.1.0 暂无日志
1.0 正式版本修复BUG改正更新日志显示问题
2023-05-05 12:18:46 +08:00
2023-05-06 13:33:53 +08:00
当前版本:1.0 (Not beta or demo)'''
2023-05-05 12:18:46 +08:00
2023-05-06 13:33:53 +08:00
text_box = ScrolledText(root)
text_box.pack(fill=BOTH, expand=1)
2023-05-05 12:18:46 +08:00
text_box.insert(END, text)
text_box.configure(state='disabled')
2023-04-07 23:17:25 +08:00
2023-05-06 13:33:53 +08:00
# mainloop
root.title('更新日志')
root.geometry('355x250+400+400')
root.mainloop()