chatWEB
This commit is contained in:
22
client.pyw
22
client.pyw
@@ -31,14 +31,6 @@ def update():
|
|||||||
else:
|
else:
|
||||||
messagebox.showerror('update', '更新日志文件丢失,请检查文件并重新安装')
|
messagebox.showerror('update', '更新日志文件丢失,请检查文件并重新安装')
|
||||||
|
|
||||||
def user_xy():
|
|
||||||
if os.path.exists(os.path.join(CURRENT_DIR, "使用协议.docx")):
|
|
||||||
os.system("start 使用协议.docx")
|
|
||||||
else:
|
|
||||||
messagebox.showerror('使用协议','文档丢失,请检查文件内容并重新安装')
|
|
||||||
pass
|
|
||||||
pass
|
|
||||||
|
|
||||||
def quit_exe():
|
def quit_exe():
|
||||||
os.system('taskkill -f -t -im aiyunos.exe')
|
os.system('taskkill -f -t -im aiyunos.exe')
|
||||||
os.system('taskkill -f -t -im extkj.exe')
|
os.system('taskkill -f -t -im extkj.exe')
|
||||||
@@ -47,30 +39,16 @@ def quit_exe():
|
|||||||
os.system('taskkill -f -t -im wuguokai.exe')
|
os.system('taskkill -f -t -im wuguokai.exe')
|
||||||
root.destroy()
|
root.destroy()
|
||||||
|
|
||||||
def file_jc():
|
|
||||||
if os.path.exists(os.path.join(CURRENT_DIR, "jc.exe")):
|
|
||||||
os.system('start jc.exe')
|
|
||||||
else:
|
|
||||||
messagebox.showerror('sittings', '系统文件丢失,程序出现错误!')
|
|
||||||
sleep(0.5)
|
|
||||||
messagebox.showerror('error','程序出现问题,已经崩溃,错误代码:jc_not_system_file')
|
|
||||||
quit_exe()
|
|
||||||
pass
|
|
||||||
|
|
||||||
def gk():
|
def gk():
|
||||||
open_exe("gk")
|
open_exe("gk")
|
||||||
|
|
||||||
def sittings():
|
def sittings():
|
||||||
st = tk.Tk()
|
st = tk.Tk()
|
||||||
bt_xy = tk.Button(st, text='使用协议(使用前必看)', command=user_xy)
|
|
||||||
bt_update = tk.Button(st, text='更新日志', command=update)
|
bt_update = tk.Button(st, text='更新日志', command=update)
|
||||||
bt_gk = tk.Button(st, text='关于', command=gk)
|
bt_gk = tk.Button(st, text='关于', command=gk)
|
||||||
bt_fj = tk.Button(st, text='检查文件完整度', command=file_jc)
|
|
||||||
# pack
|
# pack
|
||||||
bt_update.pack()
|
bt_update.pack()
|
||||||
bt_gk.pack()
|
bt_gk.pack()
|
||||||
bt_fj.pack()
|
|
||||||
bt_xy.pack()
|
|
||||||
# mainloop
|
# mainloop
|
||||||
st.title('设置')
|
st.title('设置')
|
||||||
st.geometry("200x200+400+600")
|
st.geometry("200x200+400+600")
|
||||||
|
|||||||
Reference in New Issue
Block a user