diff --git a/install.pyw b/install.pyw index d32e786..bac34e7 100644 --- a/install.pyw +++ b/install.pyw @@ -1,6 +1,7 @@ from tkinter import * from tkinter import messagebox import os +import subprocess # 定义内容和创建主窗口 root = Tk() @@ -31,7 +32,7 @@ canvas.pack(side="left", fill="both", expand=True) # def def open_exe(exe_name): if os.path.exists(os.path.join(ml, f"{exe_name}.exe")): - os.system(f"start {exe_name}.exe") + subprocess.Popen(f"{exe_name}.exe", shell=True) else: messagebox.showerror('install', file_error) pass @@ -79,12 +80,13 @@ pip_pywin32 = Button(frame, text='pywin32安装', command=pywin32) pip_fh = Button(frame,text='返回', command=fh) # pack and label -Label(root, text='安装模式').pack() +Label(frame, text='安装列表').pack() pip_fh.pack() pip_gui.pack() pip_web.pack() pip_computer.pack() pip_maths.pack() +Label(frame ,text='').pack() pip_pyinstaller.pack() pip_tqdm.pack() pip_pygithub.pack()