This commit is contained in:
dengrb1 2023-05-05 12:33:22 +08:00 committed by GitHub
parent daf40f39ad
commit db8c97de8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,14 +10,17 @@ ok2 = '删除完成'
uninstall = 'pip uninstall' uninstall = 'pip uninstall'
def open_exe(exe_name):
if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
os.system(f"start {exe_name}.exe")
else:
messagebox.showerror('install', file_error)
pass
pass
def pyinstaller_remove(): def pyinstaller_remove():
os.system('pip uninstall pyinstaller') os.system('pip uninstall pyinstaller')
messagebox.showinfo('pip uninstall', ok2) messagebox.showinfo('pip uninstall', ok2)
pass pass
def Requests_remove():
os.system('pip uninstall Requests')
messagebox.showinfo('pip uninstall', ok2)
pass
def tqdm_remove(): def tqdm_remove():
os.system('pip uninstall tqdm') os.system('pip uninstall tqdm')
messagebox.showinfo('pip uninstall', ok2) messagebox.showinfo('pip uninstall', ok2)
@ -30,24 +33,15 @@ def pywin32_remove():
os.system('pip uninstall pywin32') os.system('pip uninstall pywin32')
messagebox.showinfo(uninstall, ok2) messagebox.showinfo(uninstall, ok2)
pass pass
def django_remove():
os.system('pip uninstall django')
messagebox.showinfo(uninstall, ok2)
pass
def numpy_remove(): def numpy_remove():
os.system('pip uninstall numpy') os.system('pip uninstall numpy')
messagebox.showinfo(uninstall, ok2) messagebox.showinfo(uninstall, ok2)
pass pass
# 按钮 # 按钮
remove_pyqt = Button(root, text='pyqt删除', command=pyqt_remove).pack()
remove_pygame = Button(root, text='pygame删除',command=pygame_remove).pack()
remove_wxpython = Button(root, text='wxpython删除', command=wxpython_remove).pack()
remove_Requests = Button(root, text='Requests删除', command=Requests_remove).pack()
remove_pyinstaller = Button(root, text='pyinstaller删除', command=pyinstaller_remove).pack() remove_pyinstaller = Button(root, text='pyinstaller删除', command=pyinstaller_remove).pack()
remove_tqdm = Button(root, text='tqdm删除', command=tqdm_remove).pack() remove_tqdm = Button(root, text='tqdm删除', command=tqdm_remove).pack()
remove_nuitka = Button(root, text='nuitka删除', command=nuitka_remove).pack() remove_nuitka = Button(root, text='nuitka删除', command=nuitka_remove).pack()
remove_pywin32 = Button(root, text='pywin32删除', command=pywin32_remove).pack() remove_pywin32 = Button(root, text='pywin32删除', command=pywin32_remove).pack()
remove_django = Button(root, text='django删除', command=django_remove)
remove_numpy = Button(root ,text="numpy删除", command=numpy_remove) remove_numpy = Button(root ,text="numpy删除", command=numpy_remove)