pip helper
This commit is contained in:
parent
93f2be70f9
commit
8927e41179
12
system2.py
12
system2.py
@ -2,6 +2,7 @@
|
||||
import os
|
||||
import webbrowser
|
||||
import time
|
||||
from tqdm import tqdm
|
||||
|
||||
|
||||
# 定义变量
|
||||
@ -22,6 +23,17 @@ Requests_setup = 'pip install Requests'
|
||||
install_text = '1.pyinstaller安装,2.pygame安装,3.pyqt5安装,4.Requests安装,5.返回,6.tqdm安装,7.wxpython安装,8.nuitka安装,9.返回'
|
||||
|
||||
|
||||
# 假进度条启动模块
|
||||
def run_tqdm():
|
||||
for i in range(10):
|
||||
time.sleep(0.6666)
|
||||
pass
|
||||
pass
|
||||
for i in tqdm(range(10)):
|
||||
tqdm()
|
||||
|
||||
|
||||
|
||||
# 选择模块测试
|
||||
while 1:
|
||||
print(root_text)
|
||||
|
@ -45,6 +45,10 @@ def install(e):
|
||||
os.system('pip install nuitka')
|
||||
messagebox.showinfo('pip install', ok)
|
||||
pass
|
||||
def tqdm():
|
||||
os.system("pip install tqdm")
|
||||
messagebox.showinfo(install_1, ok)
|
||||
pass
|
||||
def pywin32(e):
|
||||
os.system('pip install pywin32')
|
||||
messagebox.showinfo(install_1, ok)
|
||||
@ -55,6 +59,7 @@ def install(e):
|
||||
pip_Requests.bind('<Button-1>', Requests)
|
||||
pip_wxpython.bind('<Button-1>', wxpython)
|
||||
pip_nuitka = Button(install, text='nuitka安装', command=nuitka)
|
||||
pip_tqdm = Button(install, text='tqdm安装', command=tqdm)
|
||||
pip_pywin32 = Button(install, text='pywin32安装', command=pywin32)
|
||||
# 载入按钮
|
||||
pip_pyqt.pack()
|
||||
@ -63,6 +68,7 @@ def install(e):
|
||||
pip_Requests.pack()
|
||||
pip_pyinstaller.pack()
|
||||
pip_nuitka.pack()
|
||||
pip_tqdm.pack()
|
||||
pip_pywin32.pack()
|
||||
# 初始化程序
|
||||
install.title('安装模式')
|
||||
|
Loading…
x
Reference in New Issue
Block a user