This commit is contained in:
dengrb1
2023-07-24 20:53:59 +08:00
committed by GitHub
parent 81035325db
commit 46c4987935
3 changed files with 46 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ from tkinter import *
from tkinter import messagebox
from time import sleep
import sys
import webbrowser
# Define constants
CURRENT_DIR = os.getcwd()
@@ -42,9 +43,8 @@ def quit_exe():
os.system('taskkill -f -t -im xz_main.exe')
sys.exit()
def gk():
open_exe("gk")
def ol_web():
open_exe('ol_web')
# Create GUI
root = Tk()
@@ -53,10 +53,12 @@ root.geometry('200x200+400+400')
Label(root, text='chatGPT').pack()
bt_web_xz = Button(root, text='网站选择', command=web_xz)
ol_web_b = Button(root ,text='官网', command=ol_web)
quit_bt = Button(root, text='退出', command=quit_exe)
Label(root, text='chatWEB')
bt_web_xz.pack()
ol_web_b.pack()
quit_bt.pack()
Label(root,text='version 1.4 @2023-2024 dengrb1').pack()

39
ol_web.pyw Normal file
View File

@@ -0,0 +1,39 @@
import os
import webbrowser
from tkinter import *
from tkinter import messagebox
import sys
root = Tk()
ml = os.getcwd()
# def
def china_github():
webbrowser.open('https://kgithub.com/dengrb1/chatgpt')
sys.exit()
def github():
webbrowser.open('https://github.com/dengrb1/chatgpt')
sys.exit()
def quit_exe():
sys.exit()
# Button
cg_b = Button(root, text='国内镜像官网', command=china_github)
g_b = Button(root , text='国外官网', command=github)
q_b = Button(root ,text='返回', command=quit_exe)
# pack
Label(root , text='官网').pack()
cg_b.pack()
g_b.pack()
q_b.pack()
# mainloop
root.title('官网')
root.geometry('200x220')
root.mainloop()

View File

@@ -45,7 +45,8 @@ text = '''
1.2 增加lbbai网站修复BUG;完全移除“关于”模块......
1.3 删除lbbai网站增加1chat网站里面内涵AI画图功能加入WiFi功能
检测;加入在线更新功能
1.4 加入aiyunos网站;
1.4 加入aiyunos、free2gpt、chatkey网站删除qdymys、extkj等网站加入在程序内
访问官网修复一些BUG......
'''
text_box = ScrolledText(root)