2023/8/28 update

This commit is contained in:
dengrb1 2023-08-28 11:00:35 +08:00 committed by GitHub
parent 111310b94b
commit 90b02bdd4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View File

@ -6,7 +6,6 @@ import os
root = Tk()
ml = os.getcwd()
setting_ml = f"{ml}\setting\\"
file_error = '文件丢失,请重新安装'
@ -26,10 +25,7 @@ def delete():
def update():
if os.path.exists(os.path.join(setting_ml, "update.pyw")):
subprocess.Popen(f"{setting_ml}update.pyw", shell=True)
else:
messagebox.showerror('system', file_error)
jc("update")
def exit_exe():

View File

@ -42,6 +42,8 @@ def computer_delete():
open_exe('computer_delete')
def maths_delete():
open_exe('maths_delete')
def game_delete():
open_exe("game_delete")
def pyinstaller_remove():
os.system('pip uninstall pyinstaller')
messagebox.showinfo('pip uninstall', ok)

View File

@ -45,6 +45,8 @@ def computer_install():
open_exe('computer_install')
def maths_install():
open_exe('maths_install')
def game_install():
open_exe("game_install")
def pyinstaller():
os.system('pip install pyinstaller -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo('pip install', ok)
@ -72,6 +74,7 @@ pip_gui = Button(frame, text='GUI类安装', command=gui_install)
pip_web = Button(frame, text='web类安装', command=web_install)
pip_computer = Button(frame, text='机器学习类库安装', command=computer_install)
pip_maths = Button(frame, text='maths类安装', command=maths_install)
pip_game = Button(frame, text='game类安装', command=game_install)
pip_pyinstaller = Button(frame, text='pyinstaller安装', command=pyinstaller)
pip_tqdm = Button(frame, text='tqdm安装', command=tqdm)
pip_pygithub = Button(frame, text='pygithub安装', command=pygithub)
@ -86,6 +89,7 @@ pip_gui.pack()
pip_web.pack()
pip_computer.pack()
pip_maths.pack()
pip_game.pack()
Label(frame ,text='').pack()
pip_pyinstaller.pack()
pip_tqdm.pack()