pip helper

This commit is contained in:
dengrb1 2023-05-08 22:02:36 +08:00 committed by GitHub
parent ffcf25817b
commit 11e2890099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 8 deletions

View File

@ -8,6 +8,24 @@ ml = os.getcwd()
ok = "install OK!"
install = "Install"
# 创建滚动区域的Canvas对象
canvas = Canvas(root, width=280, height=280, scrollregion=(0, 0, 500, 500))
# 创建可滚动区域的Frame对象并将其添加到Canvas中
frame = Frame(canvas)
frame.bind("<Configure>", lambda e: canvas.configure(scrollregion=canvas.bbox("all")))
canvas.create_window((0, 0), window=frame, anchor="nw")
# 创建Scrollbar对象并将其绑定到Canvas上
scrollbar = Scrollbar(root, orient="vertical", command=canvas.yview)
canvas.configure(yscrollcommand=scrollbar.set)
scrollbar.pack(side="right", fill="y")
# 显示Canvas和Scrollbar
canvas.pack(side="left", fill="both", expand=True)
def pyqt5():
os.system("pip install pyqt5")
os.systen('pip install PyQtWebEngine')
@ -26,22 +44,42 @@ def Seaborn():
messagebox.showinfo(install, ok)
def fh():
root.destroy()
def kivy():
os.system('pip install kivy')
messagebox.showinfo(install, ok)
def pysimpleGUI():
os.system('pip install pysimpleGUI')
messagebox.showinfo(install, ok)
def pyside6():
os.system('pip install pyside6')
messagebox.showinfo(install ,ok)
def flexx():
os.system('pip install flexx')
messagebox.showinfo(install, ok)
# Button
bt_qt = Button(root, text='pyqt5安装', command=pyqt5)
bt_pygame = Button(root, text='pygame安装', command=pygame)
bt_matplotlib = Button(root, text='matplotlib安装', command=Matplotlib)
bt_seaborn = Button(root, text='Seaborn安装', command=Seaborn)
bt_wx = Button(root, text='wxpython安装', command=wxpython)
bt_fh = Button(root, text='返回', command=fh)
bt_qt = Button(frame, text='pyqt5安装', command=pyqt5)
bt_pygame = Button(frame, text='pygame安装', command=pygame)
bt_matplotlib = Button(frame, text='matplotlib安装', command=Matplotlib)
bt_seaborn = Button(frame, text='Seaborn安装', command=Seaborn)
bt_kivy = Button(frame, text='kivy安装', command=kivy)
bt_pyside = Button(frame, text='pyside6安装', command=pyside6)
bt_flexx = Button(frame, text='flexx安装', command=flexx)
bt_pysimpleGUI = Button(frame, text='pysimpleGUI安装', commmand=pysimpleGUI)
bt_wx = Button(frame, text='wxpython安装', command=wxpython)
bt_fh = Button(frame, text='返回', command=fh)
# pack and Label
Label(root, text="GUI").pack()
bt_qt.pack()
bt_pyside.pack()
bt_kivy.pack()
bt_pygame.pack()
bt_matplotlib.pack()
bt_seaborn.pack()
bt_flexx.pack()
bt_pysimpleGUI.pack()
bt_wx.pack()
bt_fh.pack()

View File

@ -6,9 +6,9 @@
等以后在更新把......
# 重要消息2
pip helper 已经更新到了1.2版本
pip helper 已经更新到了1.2.1版本
请耐心等待1.3版本或者1.2.1版本出世
下一个版本会增加新的GUI库比如:kivy, pysimpleGUI,pyside6等等......
# 作者
邮箱drb12311@163.com