2023/8/27 update

This commit is contained in:
dengrb1 2023-08-27 11:52:33 +08:00 committed by GitHub
parent 0f51fe5616
commit 2a869217a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 13 deletions

View File

@ -29,12 +29,6 @@ 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")
else:
messagebox.showerror('delete', file_error)
pass
def Requests():
os.system('pip uninstall Requests')
messagebox.showinfo('pip uninstall', ok2)

View File

@ -1,6 +1,7 @@
from tkinter import *
from tkinter import messagebox
import os
import subprocess
# 定义内容和创建主窗口
root = Tk()
@ -36,13 +37,7 @@ def django():
os.system('pip install django -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)
pass
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 fastAPI():
os.system('pip install fastapi -i https://mirrors.aliyun.com/pypi/simple/')
messagebox.showinfo(install, ok)