2023/8/27 update

This commit is contained in:
dengrb1 2023-08-27 11:48:58 +08:00 committed by GitHub
parent c06fe6cb13
commit cf5391eed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()