diff --git a/client.pyw b/client.pyw index ce06f5b..b67e031 100644 --- a/client.pyw +++ b/client.pyw @@ -7,6 +7,7 @@ import sys # Define constants CURRENT_DIR = os.getcwd() FILE_ERROR = '文件丢失,请检查文件内容并重新安装' +task = f'taskkill -f -t -im ' # Define functions def open_exe(exe_name): @@ -29,9 +30,9 @@ def update(): open_exe("update") def quit_exe(): - os.system('taskkill -f -t -im qdymys.exe') + os.system('taskkill -f -t -im free2gpt.exe') os.system('taskkill -f -t -im wuguokai.exe') - os.system('taskkill -f -t -im extkj.exe') + os.system('taskkill -f -t -im chatkey.exe') os.system('taskkill -f -t -im bnu120.exe') os.system('taskkill -f -t -im 1chat.exe') os.system('taskkill -f -t -im chat_command.exe') @@ -41,17 +42,13 @@ def quit_exe(): os.system('taskkill -f -t -im xz_main.exe') sys.exit() -def jc(): - messagebox.showerror('system', '检测程序暂时无法使用!!!(应该以后都不会写完了......)') - pass - def gk(): open_exe("gk") # Create GUI root = Tk() -root.title('chatGPT') +root.title('chatWEB') root.geometry('200x200+400+400') Label(root, text='chatGPT').pack() @@ -61,7 +58,7 @@ quit_bt = Button(root, text='退出', command=quit_exe) Label(root, text='chatWEB') bt_web_xz.pack() quit_bt.pack() -Label(root,text='version 1.3 @2023-2024 dengrb1').pack() +Label(root,text='version 1.4 @2023-2024 dengrb1').pack() # mainloop root.mainloop() \ No newline at end of file diff --git a/xz_main.pyw b/xz_main.pyw new file mode 100644 index 0000000..57216c8 --- /dev/null +++ b/xz_main.pyw @@ -0,0 +1,33 @@ +import os +from tkinter import * +from tkinter import messagebox +from time import time +import sys + +root = Tk() +ml = os.getcwd() + +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('system','文件丢失!') + pass + +def chat(): + open_exe("xz_chat") + +def quit_exe(): + sys.exit() + +chat_b = Button(root ,text='聊天网站', command=chat) +q_b = Button(root ,text='返回', command= quit_exe) + +Label(root, text='选择模式').pack() +chat_b.pack() +q_b.pack() + +# mainloop +root.title('选择') +root.geometry('200x220') +root.mainloop() \ No newline at end of file