Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dec02d04cb | ||
|
|
67355a1355 | ||
|
|
114a0c8a8e | ||
|
|
cefcd57d59 | ||
|
|
1e809e056e | ||
|
|
8022b975cd | ||
|
|
11e2890099 |
@@ -9,17 +9,34 @@ file_error = '文件丢失!请重新安装'
|
||||
ok2 = "删除完成"
|
||||
uninstall = 'pip uninstall'
|
||||
|
||||
# 创建滚动区域的Canvas对象
|
||||
canvas = Canvas(root, width=280, height=280, scrollregion=(0, 0, 500, 500))
|
||||
|
||||
def pyqt_remove():
|
||||
# 创建可滚动区域的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 pyqt():
|
||||
os.system('pip uninstall pyqt5')
|
||||
os.systen('pip uninstall PyQtWebEngine')
|
||||
messagebox.showinfo('pip uninstall', ok2)
|
||||
pass
|
||||
def wxpython_remove():
|
||||
def wxpython():
|
||||
os.system('pip uninstall wxpython')
|
||||
messagebox.showinfo('pip uninstall', ok2)
|
||||
pass
|
||||
def pygame_remove():
|
||||
def pygame():
|
||||
os.system('pip uninstall pygame')
|
||||
messagebox.showinfo('pip uninstall', ok2)
|
||||
pass
|
||||
@@ -29,28 +46,48 @@ def Matplotlib():
|
||||
def Seaborn():
|
||||
os.system('pip uninstall Seaborn')
|
||||
messagebox.showinfo(uninstall, ok2)
|
||||
def kivy():
|
||||
os.system('pip uninstall kivy')
|
||||
messagebox.showinfo(uninstall, ok2)
|
||||
def pysimpleGUI():
|
||||
os.system('pip uninstall pysimpleGUI')
|
||||
messagebox.showinfo(uninstall, ok2)
|
||||
def pyside6():
|
||||
os.system('pip uninstall pyside6')
|
||||
messagebox.showinfo(uninstall ,ok2)
|
||||
def flexx():
|
||||
os.system('pip uninstall flexx')
|
||||
messagebox.showinfo(uninstall, ok2)
|
||||
def fh():
|
||||
root.destroy()
|
||||
|
||||
# button
|
||||
bt_pq5 = Button(root, text='pyqt5删除', command=pyqt_remove)
|
||||
bt_pygame = Button(root, text='pygame删除', command=pygame_remove)
|
||||
bt_matplotlib = Button(root, text='matplotlib删除', command=Matplotlib)
|
||||
bt_seaborn = Button(root, text='Seaborn删除', command=Seaborn)
|
||||
bt_wxpython = Button(root, text='wxpython删除', command=wxpython_remove)
|
||||
bt_fh = Button(root, text='返回', command=fh)
|
||||
bt_qt = Button(root, text='pyqt5删除', command=pyqt)
|
||||
bt_pygame = Button(root, text='pygame删除', command=pygame)
|
||||
bt_wxpython = Button(frame, text='wxpython删除', command=wxpython)
|
||||
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_matplotlib = Button(frame, text='matplatlib删除', command=Matplotlib)
|
||||
bt_seaborn = Button(frame, text='seaborn删除', command=Seaborn)
|
||||
bt_pysimpleGUI = Button(frame, text='pysimpleGUI删除', command=pysimpleGUI)
|
||||
bt_fh = Button(frame, text='返回', command=fh)
|
||||
|
||||
# pack and Label
|
||||
Label(root, text='GUI删除').pack()
|
||||
bt_pq5.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_wxpython.pack()
|
||||
bt_fh.pack()
|
||||
|
||||
|
||||
# mainloop
|
||||
root.title('GUI')
|
||||
root.geometry('200x230+400+500')
|
||||
root.geometry('200x300+100+100')
|
||||
root.mainloop()
|
||||
@@ -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,27 +44,47 @@ 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安装', command=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()
|
||||
|
||||
|
||||
# mainloop
|
||||
root.title("GUI")
|
||||
root.geometry('200x230+400+400')
|
||||
root.geometry('200x230+100+110')
|
||||
root.mainloop()
|
||||
12
README.md
12
README.md
@@ -1,16 +1,12 @@
|
||||
# pip-helper
|
||||
可以帮助不会使用pip安装库的人准备
|
||||
|
||||
# 重要通知!!!
|
||||
因为作者找不到其他的GUI库或者其他库,所以作者就懒得更新了
|
||||
# 使用方式
|
||||
首先在**https://github.com/dengrb1/chatgpt**里面下载最新的版本
|
||||
|
||||
等以后在更新把......
|
||||
# 重要消息2
|
||||
pip helper 已经更新到了1.2版本
|
||||
|
||||
请耐心等待1.3版本或者1.2.1版本出世
|
||||
然后再打开刚刚下载好的文件,然后想平时安装程序一样使用本程序吧!!!
|
||||
|
||||
# 作者
|
||||
邮箱:drb12311@163.com
|
||||
|
||||
# 之后的就没有了......
|
||||
# **_之后的就没有了......_**
|
||||
@@ -81,5 +81,5 @@ canvas.pack(side="left", fill="both", expand=True)
|
||||
|
||||
# mainloop
|
||||
root.title("delete")
|
||||
root.geometry("200x250+400+600")
|
||||
root.geometry("200x250+100+10")
|
||||
root.mainloop()
|
||||
@@ -78,5 +78,5 @@ pip_fh = Button(frame,text='返回', command=fh).pack()
|
||||
|
||||
# mainloop
|
||||
root.title('安装')
|
||||
root.geometry('200x270+400+600')
|
||||
root.geometry('200x270+100+50')
|
||||
root.mainloop()
|
||||
@@ -23,8 +23,9 @@ text = '''0.1.0 暂无日志
|
||||
1.1 加入机器学习库安装;修复BUG;删除“关于”模块
|
||||
1.2 加入更多可视化库,都在gui安装和删除类里面;修复一些BUG
|
||||
1.2.1 加入机器学习库——openai;修复BUG;一键安装所有库正在试验中......
|
||||
1.3 加入更多GUI库,比如:pyside6, kivy等等;修复一些BUG
|
||||
|
||||
当前版本:1.2 (Not beta or demo)'''
|
||||
当前版本:1.3 (Not beta or demo)'''
|
||||
|
||||
text_box = ScrolledText(root)
|
||||
text_box.pack(fill=BOTH, expand=1)
|
||||
|
||||
Reference in New Issue
Block a user