This commit is contained in:
dengrb1
2023-07-24 20:35:51 +08:00
committed by GitHub
parent fd1decf0f9
commit 81035325db
2 changed files with 38 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ import sys
# Define constants # Define constants
CURRENT_DIR = os.getcwd() CURRENT_DIR = os.getcwd()
FILE_ERROR = '文件丢失,请检查文件内容并重新安装' FILE_ERROR = '文件丢失,请检查文件内容并重新安装'
task = f'taskkill -f -t -im '
# Define functions # Define functions
def open_exe(exe_name): def open_exe(exe_name):
@@ -29,9 +30,9 @@ def update():
open_exe("update") open_exe("update")
def quit_exe(): 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 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 bnu120.exe')
os.system('taskkill -f -t -im 1chat.exe') os.system('taskkill -f -t -im 1chat.exe')
os.system('taskkill -f -t -im chat_command.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') os.system('taskkill -f -t -im xz_main.exe')
sys.exit() sys.exit()
def jc():
messagebox.showerror('system', '检测程序暂时无法使用!!!(应该以后都不会写完了......)')
pass
def gk(): def gk():
open_exe("gk") open_exe("gk")
# Create GUI # Create GUI
root = Tk() root = Tk()
root.title('chatGPT') root.title('chatWEB')
root.geometry('200x200+400+400') root.geometry('200x200+400+400')
Label(root, text='chatGPT').pack() Label(root, text='chatGPT').pack()
@@ -61,7 +58,7 @@ quit_bt = Button(root, text='退出', command=quit_exe)
Label(root, text='chatWEB') Label(root, text='chatWEB')
bt_web_xz.pack() bt_web_xz.pack()
quit_bt.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 # mainloop
root.mainloop() root.mainloop()

33
xz_main.pyw Normal file
View File

@@ -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()