This commit is contained in:
dengrb1
2023-05-25 20:39:44 +08:00
committed by GitHub
parent 9df5b06f7d
commit 6868a0ab4c
3 changed files with 46 additions and 13 deletions

View File

@@ -1,6 +1,5 @@
import os
import platform
import tkinter as tk
from tkinter import *
from tkinter import messagebox
from time import sleep
import sys
@@ -8,7 +7,6 @@ import sys
# Define constants
CURRENT_DIR = os.getcwd()
FILE_ERROR = '文件丢失,请检查文件内容并重新安装'
system = platform.system()
# Define functions
def open_exe(exe_name):
@@ -35,8 +33,10 @@ def quit_exe():
os.system('taskkill -f -t -im wuguokai.exe')
os.system('taskkill -f -t -im extkj.exe')
os.system('taskkill -f -t -im bnu120.exe')
os.system('taskkill -f -t -im lbbai.exe')
os.system('taskkill -f -t -im xjai.exe')
os.system('taskkill -f -t -im chat_command.exe')
os.system('taskkill -f -t -im sittings.exe')
os.system('taskkill -f -t -im update.exe')
os.system('taskkill -f -t -im python.exe')
sys.exit()
@@ -48,10 +48,10 @@ def gk():
open_exe("gk")
def sittings():
st = tk.Tk()
bt_update = tk.Button(st, text='更新日志', command=update)
bt_gk = tk.Button(st, text='关于', command=gk)
bt_jc = tk.Button(st, text='检测文件完整度', command=jc)
st = Tk()
bt_update = Button(st, text='更新日志', command=update)
bt_gk = Button(st, text='关于', command=gk)
bt_jc = Button(st, text='检测文件完整度', command=jc)
# pack
bt_jc.pack()
bt_update.pack()
@@ -63,14 +63,14 @@ def sittings():
# Create GUI
root = tk.Tk()
root = Tk()
root.title('chatGPT')
root.geometry('200x200+400+400')
tk.Label(root, text='chatGPT').pack()
Label(root, text='chatGPT').pack()
bt_web_xz = tk.Button(root, text='网站选择', command=web_xz)
bt_st = tk.Button(root, text='其他内容', command=sittings)
quit_bt = tk.Button(root, text='退出', command=quit_exe)
bt_web_xz = Button(root, text='网站选择', command=web_xz)
bt_st = Button(root, text='其他内容', command=sittings)
quit_bt = Button(root, text='退出', command=quit_exe)
bt_web_xz.pack()
bt_st.pack()