chatWEB
This commit is contained in:
18
没有使用/xz_login.pyw
Normal file
18
没有使用/xz_login.pyw
Normal file
@@ -0,0 +1,18 @@
|
||||
from tkinter import *
|
||||
from tkinter import messagebox
|
||||
import os
|
||||
|
||||
|
||||
root = Tk()
|
||||
ml = os.getcwd()
|
||||
|
||||
|
||||
def open_exe(exe_name):
|
||||
if exe_name == None:
|
||||
messagebox.showerror('程序错误:没有参数')
|
||||
pass
|
||||
if os.path.exists(os.path.join(ml, f"{exe_name}.exe")):
|
||||
os.system(f"start {exe_name}.exe")
|
||||
else:
|
||||
messagebox.showerror('chatWEB', '重要文件丢失,请重新安装')
|
||||
pass
|
||||
Reference in New Issue
Block a user