update
This commit is contained in:
@@ -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
39
ol_web.pyw
Normal 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()
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user