pip helper
This commit is contained in:
@@ -22,17 +22,21 @@ def pygame_remove():
|
|||||||
os.system('pip uninstall pygame')
|
os.system('pip uninstall pygame')
|
||||||
messagebox.showinfo('pip uninstall', ok2)
|
messagebox.showinfo('pip uninstall', ok2)
|
||||||
pass
|
pass
|
||||||
|
def fh():
|
||||||
|
root.destroy()
|
||||||
|
|
||||||
# button
|
# button
|
||||||
bt_pq5 = Button(root, text='pyqt5删除', command=pyqt_remove)
|
bt_pq5 = Button(root, text='pyqt5删除', command=pyqt_remove)
|
||||||
bt_pygame = Button(root, text='pygame删除', command=pygame_remove)
|
bt_pygame = Button(root, text='pygame删除', command=pygame_remove)
|
||||||
bt_wxpython = Button(root, text='wxpython删除', command=wxpython_remove)
|
bt_wxpython = Button(root, text='wxpython删除', command=wxpython_remove)
|
||||||
|
bt_fh = Button(root, text='返回', command=fh)
|
||||||
|
|
||||||
# pack and Label
|
# pack and Label
|
||||||
Label(root, text='GUI删除').pack()
|
Label(root, text='GUI删除').pack()
|
||||||
bt_pq5.pack()
|
bt_pq5.pack()
|
||||||
bt_pygame.pack()
|
bt_pygame.pack()
|
||||||
bt_wxpython.pack()
|
bt_wxpython.pack()
|
||||||
|
bt_fh.pack()
|
||||||
|
|
||||||
|
|
||||||
# mainloop
|
# mainloop
|
||||||
|
|||||||
@@ -18,18 +18,22 @@ def wxpython():
|
|||||||
def pygame():
|
def pygame():
|
||||||
os.system("pip install pygame")
|
os.system("pip install pygame")
|
||||||
messagebox.showinfo(install, ok)
|
messagebox.showinfo(install, ok)
|
||||||
|
def fh():
|
||||||
|
root.destroy()
|
||||||
|
|
||||||
|
|
||||||
# Button
|
# Button
|
||||||
bt_qt = Button(root, text='pyqt5安装', command=pyqt5)
|
bt_qt = Button(root, text='pyqt5安装', command=pyqt5)
|
||||||
bt_pygame = Button(root, text='pygame安装', command=pygame)
|
bt_pygame = Button(root, text='pygame安装', command=pygame)
|
||||||
bt_wx = Button(root, text='wxpython安装', command=wxpython)
|
bt_wx = Button(root, text='wxpython安装', command=wxpython)
|
||||||
|
bt_fh = Button(root, text='返回', command=fh)
|
||||||
|
|
||||||
# pack and Label
|
# pack and Label
|
||||||
Label(root, text="GUI install").pack()
|
Label(root, text="GUI install").pack()
|
||||||
bt_qt.pack()
|
bt_qt.pack()
|
||||||
bt_pygame.pack()
|
bt_pygame.pack()
|
||||||
bt_wx.pack()
|
bt_wx.pack()
|
||||||
|
bt_fh.pack()
|
||||||
|
|
||||||
|
|
||||||
# mainloop
|
# mainloop
|
||||||
|
|||||||
Reference in New Issue
Block a user