From 7b9bec13dc9803608995432da70e529da7acf98b Mon Sep 17 00:00:00 2001 From: dengrb1 <125752069+dengrb1@users.noreply.github.com> Date: Sat, 6 May 2023 13:18:39 +0800 Subject: [PATCH] pip helper --- delete.py | 5 ++++- install.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/delete.py b/delete.py index c221e1b..25d587d 100644 --- a/delete.py +++ b/delete.py @@ -45,6 +45,8 @@ def numpy_remove(): os.system('pip uninstall numpy') messagebox.showinfo(uninstall, ok2) pass +def fh(): + root.destroy() # 按钮 remove_GUI = Button(root, text='GUI类删除', command=GUI_delete).pack() remove_web = Button(root, text='web类删除', command=web_delete).pack() @@ -52,7 +54,8 @@ remove_pyinstaller = Button(root, text='pyinstaller删除', command=pyinstaller_ remove_tqdm = Button(root, text='tqdm删除', command=tqdm_remove).pack() remove_nuitka = Button(root, text='nuitka删除', command=nuitka_remove).pack() remove_pywin32 = Button(root, text='pywin32删除', command=pywin32_remove).pack() -remove_numpy = Button(root ,text="numpy删除", command=numpy_remove) +remove_numpy = Button(root ,text="numpy删除", command=numpy_remove).pack() +remove_fh = Button(root, text='返回', command=fh).pack() # 初始化程序 diff --git a/install.py b/install.py index d6e9c55..70a5a0e 100644 --- a/install.py +++ b/install.py @@ -42,6 +42,8 @@ def numpy(): os.system('pip install numpy') messagebox.showinfo(install_1, ok) pass +def fh(): + root.destroy() # 按钮 pip_gui = Button(root, text='GUI类安装', command=gui_install).pack() pip_web = Button(root, text='web类安装', command=web_install).pack() @@ -49,7 +51,8 @@ pip_pyinstaller = Button(root, text='pyinstall安装', command=pyinstaller).pack pip_tqdm = Button(root, text='tqdm安装', command=tqdm).pack() pip_nuitka = Button(root, text='nuitka安装', command=nuitka).pack() pip_pywin32 = Button(root, text='pywin32安装', command=pywin32).pack() -pip_numpy = Button(root, text='numpy安装', command=numpy) +pip_numpy = Button(root, text='numpy安装', command=numpy).pack() +pip_fh = Button(root,text='返回', command=fh).pack() # 初始化程序