pip helper
This commit is contained in:
@@ -10,6 +10,7 @@ install = "Install"
|
||||
|
||||
def pyqt5():
|
||||
os.system("pip install pyqt5")
|
||||
os.systen('pip install PyQtWebEngine')
|
||||
messagebox.showinfo(install, ok)
|
||||
def wxpython():
|
||||
os.system("pip install wxpython")
|
||||
|
||||
2
gk.py
2
gk.py
@@ -4,7 +4,7 @@ import webbrowser
|
||||
|
||||
|
||||
gk_window = Tk()
|
||||
url = 'https://github.com/dengrb1/pygk'
|
||||
url = 'https://kgithub.com/dengrb1/pip-helper/releases'
|
||||
|
||||
|
||||
la_1 = Label(gk_window, text='关于').pack()
|
||||
|
||||
10
update.py
10
update.py
@@ -3,22 +3,28 @@ from tkinter import messagebox
|
||||
import webbrowser
|
||||
|
||||
update = Tk()
|
||||
url_update = 'https://github.com/dengrb1/pygk'
|
||||
url_update = 'https://kgithub.com/dengrb1/pip-helper/releases'
|
||||
|
||||
|
||||
la_1 = Label(update, text='更新日志').pack()
|
||||
la_2 = Label(update, text='''0.1.0 版本为beta and demo version''').pack()
|
||||
la_3 = Label(update, text='当前版本:2.0 (Not beta verison)')
|
||||
la_3 = Label(update, text='当前版本:0.1.0 (beta verison)')
|
||||
|
||||
# 定义按钮
|
||||
def update_now():
|
||||
webbrowser.open(url_update)
|
||||
messagebox.showinfo('update', '请选择最新版本并下载运行安装程序,然后就可以更新了!')
|
||||
pass
|
||||
def quit_update():
|
||||
update.destroy()
|
||||
pass
|
||||
# 按钮设置
|
||||
quit_window_bt = Button(update, text='返回', command=quit_update)
|
||||
update_now_bt = Button(update, text='更新到最新版本', command=update_now)
|
||||
|
||||
# Button pack
|
||||
update_now_bt.pack()
|
||||
quit_window_bt.pack()
|
||||
|
||||
# 初始化程序
|
||||
update.title('更新日志')
|
||||
|
||||
Reference in New Issue
Block a user