From fa115b8b32e2a462c697dac854ad0a5cab80fa41 Mon Sep 17 00:00:00 2001 From: dengrb1 <125752069+dengrb1@users.noreply.github.com> Date: Tue, 25 Jul 2023 23:59:27 +0800 Subject: [PATCH] today update --- GUI_delete.pyw | 3 ++- GUI_install.pyw | 3 ++- computer_delete.pyw | 3 ++- computer_install.pyw | 3 ++- maths_delete.pyw | 17 ++++++++++++++++- maths_install.pyw | 15 +++++++++++++++ web_delete.pyw | 3 ++- web_install.pyw | 3 ++- 没有使用/taskkill.pyw | 14 ++++++++++++++ 9 files changed, 57 insertions(+), 7 deletions(-) create mode 100644 没有使用/taskkill.pyw diff --git a/GUI_delete.pyw b/GUI_delete.pyw index c9874e6..3915a53 100644 --- a/GUI_delete.pyw +++ b/GUI_delete.pyw @@ -75,6 +75,7 @@ bt_fh = Button(frame, text='返回', command=fh) # pack and Label Label(root, text='GUI删除').pack() +bt_fh.pack() bt_qt.pack() bt_pyside.pack() bt_kivy.pack() @@ -84,7 +85,7 @@ bt_seaborn.pack() bt_flexx.pack() bt_pysimpleGUI.pack() bt_wx.pack() -bt_fh.pack() + # mainloop diff --git a/GUI_install.pyw b/GUI_install.pyw index 9ad3ead..9207472 100644 --- a/GUI_install.pyw +++ b/GUI_install.pyw @@ -72,6 +72,7 @@ bt_fh = Button(frame, text='返回', command=fh) # pack and Label Label(root, text="GUI").pack() +bt_fh.pack() bt_qt.pack() bt_pyside.pack() bt_kivy.pack() @@ -81,7 +82,7 @@ bt_seaborn.pack() bt_flexx.pack() bt_pysimpleGUI.pack() bt_wx.pack() -bt_fh.pack() + # mainloop diff --git a/computer_delete.pyw b/computer_delete.pyw index 4bb7e06..51aa6b1 100644 --- a/computer_delete.pyw +++ b/computer_delete.pyw @@ -81,6 +81,7 @@ bt_fh = Button(frame, text='返回', command=fh) # pack Label(root, text='机器学习类库删除').pack() +bt_fh.pack() bt_TensorFlow.pack() bt_pytorch.pack() bt_keras.pack() @@ -91,7 +92,7 @@ bt_pyttsx.pack() bt_pylatex.pack() bt_scikit_learn.pack() bt_openai.pack() -bt_fh.pack() + # mainloop diff --git a/computer_install.pyw b/computer_install.pyw index e3d9dc0..c07c1a6 100644 --- a/computer_install.pyw +++ b/computer_install.pyw @@ -81,6 +81,7 @@ bt_fh = Button(frame, text='返回', command=fh) # pack Label(root, text='机器学习类库安装').pack() +bt_fh.pack() bt_tensorFlow.pack() bt_pytorch.pack() bt_keras.pack() @@ -91,7 +92,7 @@ bt_XGBoost.pack() bt_pyttsx.pack() bt_pylatex.pack() bt_openai.pack() -bt_fh.pack() + # mainloop diff --git a/maths_delete.pyw b/maths_delete.pyw index c4bade6..e014e17 100644 --- a/maths_delete.pyw +++ b/maths_delete.pyw @@ -36,7 +36,7 @@ def open_exe(exe_name): messagebox.showerror('pip helper', file_error) pass def Numpy(): - os.system('pip uninstall numpy') + os.system(f'pip uninstall numpy') messagebox.showinfo(uninstall, ok) def scipy(): os.system(f'pip uninstall scipy') @@ -47,6 +47,15 @@ def sympy(): def pandas(): os.system(f'pip uninstall pandas') messagebox.showinfo(uninstall, ok) +def pyomo(): + os.system(f'pip uninstall pyomo') + messagebox.showinfo(uninstall, ok) +def gpy(): + os.system(f'pip uninstall gpy') + messagebox.showinfo(uninstall ,ok) +def pydy(): + os.system(f'pip uninstall pydy') + messagebox.showinfo(uninstall ,ok) def fh(): root.destroy() @@ -56,6 +65,9 @@ bt_n = Button(frame, text='Numpy删除', command=Numpy) bt_scipy = Button(frame, text='scipy删除', command=scipy) bt_sympy = Button(frame, text='sympy删除', command=sympy) bt_pandas = Button(frame, text='pandas删除', command=pandas) +bt_pyomo = Button(frame ,text='pyomo删除', command=pyomo) +bt_gpy = Button(frame , text='gpy删除', command=gpy) +bt_pydy = Button(frame ,text='pydy删除', command=pydy) bt_fh = Button(frame, text='返回', command=fh) # pack and Label @@ -65,6 +77,9 @@ bt_n.pack() bt_scipy.pack() bt_sympy.pack() bt_pandas.pack() +bt_pyomo.pack() +bt_gpy.pack() +bt_pydy.pack() # mainloop diff --git a/maths_install.pyw b/maths_install.pyw index bf5c889..29ce151 100644 --- a/maths_install.pyw +++ b/maths_install.pyw @@ -47,6 +47,15 @@ def sympy(): def pandas(): os.system(f'pip install pandas {i}') messagebox.showinfo(install, ok) +def pyomo(): + os.system(f'pip install pyomo {i}') + messagebox.showinfo(install ,ok) +def gpy(): + os.system(f'pip install gpy {i}') + messagebox.showinfo(install ,ok) +def pydy(): + os.system(f'pip install pydy {i}') + messagebox.showinfo(install ,ok) def fh(): root.destroy() @@ -56,6 +65,9 @@ bt_n = Button(frame, text='Numpy安装', command=Numpy) bt_scipy = Button(frame, text='scipy安装', command=scipy) bt_sympy = Button(frame, text='sympy安装', command=sympy) bt_pandas = Button(frame, text='pandas安装', command=pandas) +bt_pyomo = Button(frame , text='pyomo安装', command=pyomo) +bt_gpy = Button(frame ,text='gpy安装', command=gpy) +bt_pydy = Button(frame , text='pydy安装', command=pydy) bt_fh = Button(frame, text='返回', command=fh) # pack and Label @@ -65,6 +77,9 @@ bt_n.pack() bt_scipy.pack() bt_sympy.pack() bt_pandas.pack() +bt_pyomo.pack() +bt_gpy.pack() +bt_pydy.pack() # mainloop diff --git a/web_delete.pyw b/web_delete.pyw index 1fde04b..170b0f5 100644 --- a/web_delete.pyw +++ b/web_delete.pyw @@ -71,13 +71,14 @@ bt_fh = Button(frame, text='pydantic删除', command=fh) # pack and Label Label(root, text='web类删除').pack() +bt_fh.pack() bt_d.pack() bt_r.pack() bt_fastapi.pack() bt_sanic.pack() bt_nameko.pack() bt_pydantic.pack() -bt_fh.pack() + # mainloop diff --git a/web_install.pyw b/web_install.pyw index ea8045f..4e35e00 100644 --- a/web_install.pyw +++ b/web_install.pyw @@ -70,6 +70,7 @@ bt_fh = Button(frame, text='返回', command=fh) # pack Label(root, text='web类安装').pack() +bt_fh.pack() bt_d.pack() bt_r.pack() bt_d.pack() @@ -78,7 +79,7 @@ bt_fastapi.pack() bt_sanic.pack() bt_nameko.pack() bt_pydantic.pack() -bt_fh.pack() + # mainloop diff --git a/没有使用/taskkill.pyw b/没有使用/taskkill.pyw new file mode 100644 index 0000000..3d9230f --- /dev/null +++ b/没有使用/taskkill.pyw @@ -0,0 +1,14 @@ +import os +import platform +from time import time +import sys + +t = 'taskkill -f -t -im ' + +def Linux(): + system = platform.system() + if system == 'Linux': + pass + elif system == 'Windows': + os.system(t + 'client.exe') + os.system() \ No newline at end of file