2023/8/27 update
This commit is contained in:
parent
2a869217a7
commit
111310b94b
@ -17,11 +17,6 @@ def jc(exe_name):
|
|||||||
messagebox.showerror('system', file_error)
|
messagebox.showerror('system', file_error)
|
||||||
|
|
||||||
|
|
||||||
def update_pip():
|
|
||||||
os.system('pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip')
|
|
||||||
messagebox.showinfo('pip helper', '更新pip包管理器成功!')
|
|
||||||
|
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
jc("install")
|
jc("install")
|
||||||
|
|
||||||
@ -49,7 +44,6 @@ def eyeryone():
|
|||||||
Label(root, text='pip_helper').pack()
|
Label(root, text='pip_helper').pack()
|
||||||
Button(root, text='安装模式', command=install).pack()
|
Button(root, text='安装模式', command=install).pack()
|
||||||
Button(root, text='删除模式', command=delete).pack()
|
Button(root, text='删除模式', command=delete).pack()
|
||||||
Button(root, text='更新pip包管理工具', command=update_pip).pack()
|
|
||||||
Button(root, text='更新日志', command=update).pack()
|
Button(root, text='更新日志', command=update).pack()
|
||||||
Button(root, text='退出', command=exit_exe).pack()
|
Button(root, text='退出', command=exit_exe).pack()
|
||||||
|
|
||||||
|
@ -14,20 +14,26 @@ ml = os.getcwd()
|
|||||||
def quit_exe():
|
def quit_exe():
|
||||||
root.destroy()
|
root.destroy()
|
||||||
def update_now():
|
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")):
|
||||||
subprocess.Popen("downloads_update_now.exe", shell=True)
|
subprocess.Popen("downloads_update_now.exe", shell=True)
|
||||||
else:
|
else:
|
||||||
messagebox.showerror('error','错误:文件不存在')
|
messagebox.showerror('error','错误:文件不存在')
|
||||||
messagebox.showerror('update', '在线更新模块正在更新,请以后再试吧')
|
'''
|
||||||
|
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
|
# Label
|
||||||
update_now_bt = Button(root ,text='在线更新', command=update_now).pack(side=RIGHT)
|
update_now_bt = Button(root ,text='在线更新', command=update_now).pack(side=RIGHT)
|
||||||
quit_bt = Button(root, text='返回', command=quit_exe).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()
|
Label(root, text='更新日志').pack()
|
||||||
text = '''当前版本:1.7 (Not beta or demo)
|
text = '''当前版本:1.7 (Not beta or demo)
|
||||||
|
|
||||||
|
|
||||||
1.7 加入pygithub库;“在线更新”模块改为正式版;加入更多的机器学习库
|
1.7 加入pygithub库;加入更多的机器学习库,修复一些BUG
|
||||||
|
|
||||||
1.6 加入更多处理数据库;修复一些BUG;加入WIFI检测;修改更新日志文本放置的位置;加入更新pip包管理工具......
|
1.6 加入更多处理数据库;修复一些BUG;加入WIFI检测;修改更新日志文本放置的位置;加入更新pip包管理工具......
|
||||||
|
|
||||||
@ -55,5 +61,5 @@ text_box.configure(state='disabled')
|
|||||||
|
|
||||||
# mainloop
|
# mainloop
|
||||||
root.title('更新日志')
|
root.title('更新日志')
|
||||||
root.geometry('355x250+400+400')
|
root.geometry('400x300+400+400')
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user