pip-helper/update.pyw
2023-08-28 11:00:35 +08:00

66 lines
2.2 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""基本上,这个文件都是已经提前写好了下一个版本的内容的
之后几天基本上都会发布最新版本的内容的"""
from tkinter import *
from tkinter.scrolledtext import ScrolledText
import webbrowser
from tkinter import messagebox
import subprocess
import os
root = Tk()
ml = os.getcwd()
def quit_exe():
root.destroy()
def update_now():
'''
if os.path.exists(os.path.join(ml, "downloads_update_now.exe")):
subprocess.Popen("downloads_update_now.exe", shell=True)
else:
messagebox.showerror('error','错误:文件不存在')
'''
webbrowser.open('https://kgithub.com/dengrb1/pip-helper')
def update_pip():
os.system('pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip')
messagebox.showinfo('pip helper', '更新pip包管理器成功!')
# Label
update_now_bt = Button(root ,text='在线更新', command=update_now).pack(side=RIGHT)
quit_bt = Button(root, text='返回', command=quit_exe).pack(side=RIGHT)
pip_bt = Button(root, text='pip包更新', command=update_pip).pack(side=RIGHT)
Label(root, text='更新日志').pack()
text = '''当前版本:1.7 (Not beta or demo)
1.7 加入pygithub库加入更多的机器学习库,修复一些BUG
1.6 加入更多处理数据库修复一些BUG加入WIFI检测修改更新日志文本放置的位置加入更新pip包管理工具......
1.5.1 修改pip源让下载速度变得更加快速
1.5 加入更多机器学习库修复一些BUG;修改pip安装检测代
1.4 加入pip安装检测加入更多web类库修复一些BUG
1.3 加入更多GUI库比如pyside6, kivy等等修复一些BUG
1.2.1 加入机器学习库——openai修复BUG;一键安装所有库正在试验中......
1.2 加入更多可视化库都在gui安装和删除类里面修复一些BUG
1.1 加入机器学习库安装修复BUG删除“关于”模块
1.0 正式版本。修复BUG改正更新日志显示问题
0.1.0 暂无日志
'''
text_box = ScrolledText(root)
text_box.pack(fill=BOTH, expand=1)
text_box.insert(END, text)
text_box.configure(state='disabled')
# mainloop
root.title('更新日志')
root.geometry('400x300+400+400')
root.mainloop()