2023/8/27 update
This commit is contained in:
parent
0f51fe5616
commit
2a869217a7
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user