From 67355a13552f656c973156a12256af795b90a518 Mon Sep 17 00:00:00 2001 From: dengrb1 <125752069+dengrb1@users.noreply.github.com> Date: Tue, 9 May 2023 18:21:57 +0800 Subject: [PATCH] pip helper --- GUI_delete.pyw | 22 +++++++++++----------- GUI_install.pyw | 2 +- delete.pyw | 2 +- install.pyw | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/GUI_delete.pyw b/GUI_delete.pyw index c116053..0aaa3b1 100644 --- a/GUI_delete.pyw +++ b/GUI_delete.pyw @@ -27,16 +27,16 @@ canvas.pack(side="left", fill="both", expand=True) -def pyqt_remove(): +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 @@ -62,16 +62,16 @@ def fh(): root.destroy() # button -bt_qt = 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_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_wxpython = Button(root, text='wxpython删除', command=wxpython_remove) -bt_fh = Button(root, text='返回', command=fh) +bt_fh = Button(frame, text='返回', command=fh) # pack and Label Label(root, text='GUI删除').pack() @@ -83,11 +83,11 @@ bt_matplotlib.pack() bt_seaborn.pack() bt_flexx.pack() bt_pysimpleGUI.pack() -bt_wx.pack() +bt_wxpython.pack() bt_fh.pack() # mainloop root.title('GUI') -root.geometry('200x230+400+500') +root.geometry('200x300+100+100') root.mainloop() \ No newline at end of file diff --git a/GUI_install.pyw b/GUI_install.pyw index eac5505..a6eaea3 100644 --- a/GUI_install.pyw +++ b/GUI_install.pyw @@ -86,5 +86,5 @@ bt_fh.pack() # mainloop root.title("GUI") -root.geometry('200x230+400+400') +root.geometry('200x230+100+110') root.mainloop() \ No newline at end of file diff --git a/delete.pyw b/delete.pyw index ffa2e2c..d1fd339 100644 --- a/delete.pyw +++ b/delete.pyw @@ -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() \ No newline at end of file diff --git a/install.pyw b/install.pyw index 611d0f5..65bc6b9 100644 --- a/install.pyw +++ b/install.pyw @@ -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() \ No newline at end of file