Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1f5cad3cd3 |
@@ -10,7 +10,7 @@ class BrowserWindow(QMainWindow):
|
|||||||
|
|
||||||
# Create the QWebEngineView widget
|
# Create the QWebEngineView widget
|
||||||
self.web_view = QWebEngineView(self)
|
self.web_view = QWebEngineView(self)
|
||||||
self.web_view.load(QUrl("https://chatgpt.qdymys.cn/"))
|
self.web_view.load(QUrl("https://chat2.aitianhu.top"))
|
||||||
self.setCentralWidget(self.web_view)
|
self.setCentralWidget(self.web_view)
|
||||||
|
|
||||||
# Create the QToolBar widget and add a QAction for the refresh button
|
# Create the QToolBar widget and add a QAction for the refresh button
|
||||||
27
bnu120.pyw
27
bnu120.pyw
@@ -1,27 +0,0 @@
|
|||||||
from PyQt5.QtCore import QUrl
|
|
||||||
from PyQt5.QtWidgets import QApplication, QMainWindow, QToolBar, QAction
|
|
||||||
from PyQt5.QtWebEngineWidgets import QWebEngineView
|
|
||||||
|
|
||||||
class BrowserWindow(QMainWindow):
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__()
|
|
||||||
self.setWindowTitle("Chat Browser")
|
|
||||||
self.setGeometry(100, 100, 800, 600)
|
|
||||||
|
|
||||||
# Create the QWebEngineView widget and set the URL to "https://chat.extkj.cn"
|
|
||||||
self.web_view = QWebEngineView(self)
|
|
||||||
self.web_view.load(QUrl("https://chat.1.bnu120.space"))
|
|
||||||
self.setCentralWidget(self.web_view)
|
|
||||||
|
|
||||||
# Create the QToolBar widget and add a QAction for the refresh button
|
|
||||||
toolbar = QToolBar(self)
|
|
||||||
self.addToolBar(toolbar)
|
|
||||||
refresh_action = QAction("Refresh", self)
|
|
||||||
refresh_action.triggered.connect(self.web_view.reload)
|
|
||||||
toolbar.addAction(refresh_action)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
app = QApplication([])
|
|
||||||
window = BrowserWindow()
|
|
||||||
window.show()
|
|
||||||
app.exec_()
|
|
||||||
63
client.pyw
63
client.pyw
@@ -3,7 +3,6 @@ import platform
|
|||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
from tkinter import messagebox
|
from tkinter import messagebox
|
||||||
from time import sleep
|
from time import sleep
|
||||||
import sys
|
|
||||||
|
|
||||||
# Define constants
|
# Define constants
|
||||||
CURRENT_DIR = os.getcwd()
|
CURRENT_DIR = os.getcwd()
|
||||||
@@ -16,29 +15,45 @@ def open_exe(exe_name):
|
|||||||
os.system(f"start {exe_name}.exe")
|
os.system(f"start {exe_name}.exe")
|
||||||
else:
|
else:
|
||||||
messagebox.showerror('system', FILE_ERROR)
|
messagebox.showerror('system', FILE_ERROR)
|
||||||
def open_cmd(cmd_name):
|
|
||||||
if os.path.exists(os.path.join(CURRENT_DIR, f"{cmd_name}.cmd")):
|
|
||||||
os.system(f"start {cmd_name}.cmd")
|
|
||||||
else:
|
|
||||||
messagebox.showerror('system', 'cmd服务启动失败,请重新安装')
|
|
||||||
pass
|
|
||||||
pass
|
|
||||||
|
|
||||||
def web_xz():
|
def extkj():
|
||||||
open_exe("xz")
|
open_exe("extkj")
|
||||||
|
|
||||||
|
def wuguokai():
|
||||||
|
open_exe("wuguokai")
|
||||||
|
|
||||||
|
def f1():
|
||||||
|
open_exe("aiyunos")
|
||||||
|
|
||||||
def update():
|
def update():
|
||||||
open_exe("update")
|
if os.path.exists(os.path.join(CURRENT_DIR, "update.exe")):
|
||||||
|
os.system("start update.exe")
|
||||||
|
else:
|
||||||
|
messagebox.showerror('update', '更新日志文件丢失,请检查文件并重新安装')
|
||||||
|
|
||||||
|
def user_xy():
|
||||||
|
if os.path.exists(os.path.join(CURRENT_DIR, "使用协议.docx")):
|
||||||
|
os.system("start 使用协议.docx")
|
||||||
|
else:
|
||||||
|
messagebox.showerror('使用协议','文档丢失,请检查文件内容并重新安装')
|
||||||
|
pass
|
||||||
|
pass
|
||||||
|
|
||||||
def quit_exe():
|
def quit_exe():
|
||||||
os.system('taskkill -f -t -im aiyunos.exe')
|
os.system('taskkill -f -t -im aiyunos.exe')
|
||||||
os.system('taskkill -f -t -im wuguokai.exe')
|
|
||||||
os.system('taskkill -f -t -im extkj.exe')
|
os.system('taskkill -f -t -im extkj.exe')
|
||||||
os.system('taskkill -f -t -im python.exe')
|
os.system('taskkill -f -t -im gk.exe')
|
||||||
sys.exit()
|
os.system('taskkill -f -t -im update.exe')
|
||||||
|
os.system('taskkill -f -t -im wuguokai.exe')
|
||||||
|
root.destroy()
|
||||||
|
|
||||||
def jc():
|
def file_jc():
|
||||||
messagebox.showerror('system', '检测程序暂时无法使用!!!(应该以后都不会写完了......)')
|
if os.path.exists(os.path.join(CURRENT_DIR, "if_file.exe")):
|
||||||
|
os.system('start if_file.exe')
|
||||||
|
else:
|
||||||
|
messagebox.showerror('sittings', '系统文件丢失,程序出现错误!')
|
||||||
|
sleep(1)
|
||||||
|
quit_exe()
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def gk():
|
def gk():
|
||||||
@@ -46,13 +61,15 @@ def gk():
|
|||||||
|
|
||||||
def sittings():
|
def sittings():
|
||||||
st = tk.Tk()
|
st = tk.Tk()
|
||||||
|
bt_xy = tk.Button(st, text='使用协议(使用前必看)', command=user_xy)
|
||||||
bt_update = tk.Button(st, text='更新日志', command=update)
|
bt_update = tk.Button(st, text='更新日志', command=update)
|
||||||
bt_gk = tk.Button(st, text='关于', command=gk)
|
bt_gk = tk.Button(st, text='关于', command=gk)
|
||||||
bt_jc = tk.Button(st, text='检测文件完整度', command=jc)
|
bt_fj = tk.Button(st, text='检查文件完整度', command=file_jc)
|
||||||
# pack
|
# pack
|
||||||
bt_jc.pack()
|
|
||||||
bt_update.pack()
|
bt_update.pack()
|
||||||
bt_gk.pack()
|
bt_gk.pack()
|
||||||
|
bt_fj.pack()
|
||||||
|
bt_xy.pack()
|
||||||
# mainloop
|
# mainloop
|
||||||
st.title('设置')
|
st.title('设置')
|
||||||
st.geometry("200x200+400+600")
|
st.geometry("200x200+400+600")
|
||||||
@@ -65,12 +82,14 @@ root.title('chatGPT')
|
|||||||
root.geometry('200x200+400+400')
|
root.geometry('200x200+400+400')
|
||||||
tk.Label(root, text='chatGPT').pack()
|
tk.Label(root, text='chatGPT').pack()
|
||||||
|
|
||||||
bt_web_xz = tk.Button(root, text='网站选择', command=web_xz)
|
bt_w = tk.Button(root, text='wuguokai网站', command=wuguokai)
|
||||||
bt_st = tk.Button(root, text='其他内容', command=sittings)
|
bt_e = tk.Button(root, text='extkj网站', command=extkj)
|
||||||
|
bt_f1 = tk.Button(root, text='aitianhu网站', command=f1)
|
||||||
quit_bt = tk.Button(root, text='退出', command=quit_exe)
|
quit_bt = tk.Button(root, text='退出', command=quit_exe)
|
||||||
|
|
||||||
bt_web_xz.pack()
|
bt_w.pack()
|
||||||
bt_st.pack()
|
bt_e.pack()
|
||||||
|
bt_f1.pack()
|
||||||
quit_bt.pack()
|
quit_bt.pack()
|
||||||
|
|
||||||
# mainloop
|
# mainloop
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from time import sleep
|
|||||||
def run_cmd():
|
def run_cmd():
|
||||||
print("正在启动")
|
print("正在启动")
|
||||||
sleep(0.5)
|
sleep(0.5)
|
||||||
for i in range(4):
|
for i in range(3):
|
||||||
os.system("start powershell")
|
os.system("start powershell")
|
||||||
pass
|
pass
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -11,9 +11,11 @@ error = 0
|
|||||||
def file_jx(exe_name):
|
def file_jx(exe_name):
|
||||||
maths += 1
|
maths += 1
|
||||||
if os.path.exists(os.path.join(ml, f"{exe_name}")):
|
if os.path.exists(os.path.join(ml, f"{exe_name}")):
|
||||||
pass
|
print(f'文件{maths}正常存在')
|
||||||
else:
|
else:
|
||||||
error += 1
|
error += 1
|
||||||
|
print(f"丢失{error}文件")
|
||||||
|
pass
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def extkj():
|
def extkj():
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
import os
|
|
||||||
|
|
||||||
os.system('taskkill -f -t -im aiyunos.exe')
|
|
||||||
os.system('taskkill -f -t -im wuguokai.exe')
|
|
||||||
os.system('taskkill -f -t -im extkj.exe')
|
|
||||||
os.system('taskkill -f -t -im python.exe')
|
|
||||||
|
|
||||||
exit()
|
|
||||||
39
sittings.pyw
39
sittings.pyw
@@ -1,39 +0,0 @@
|
|||||||
import os
|
|
||||||
import webbrowser
|
|
||||||
from tkinter import *
|
|
||||||
from tkinter import messagebox
|
|
||||||
|
|
||||||
|
|
||||||
root = Tk()
|
|
||||||
ml = os.getcwd()
|
|
||||||
|
|
||||||
|
|
||||||
def jc(exe_name):
|
|
||||||
if os.path.exists(os.path.join(ml,f"{exe_name}.exe")):
|
|
||||||
os.system(f"start {exe_name}.exe")
|
|
||||||
else:
|
|
||||||
messagebox.showerror("sittings", '系统文件丢失!请重新安装')
|
|
||||||
pass
|
|
||||||
pass
|
|
||||||
|
|
||||||
def gk():
|
|
||||||
jc('gk')
|
|
||||||
|
|
||||||
def update():
|
|
||||||
jc("update")
|
|
||||||
|
|
||||||
def fh():
|
|
||||||
root.destroy()
|
|
||||||
|
|
||||||
|
|
||||||
# Button, Label and pack
|
|
||||||
Label(root, text='其他内容').pack()
|
|
||||||
bt_update = Button(root, text='更新日志', command=update).pack()
|
|
||||||
bt_gk = Button(root, text='关于', command=gk).pack()
|
|
||||||
bt_fh = Button(root, text='返回', command=fh).pack()
|
|
||||||
|
|
||||||
|
|
||||||
# mainloop
|
|
||||||
root.title("其他")
|
|
||||||
root.geometry("200x200+400+400")
|
|
||||||
root.mainloop()
|
|
||||||
26
update.pyw
26
update.pyw
@@ -1,37 +1,29 @@
|
|||||||
from tkinter import *
|
from tkinter import *
|
||||||
from tkinter.scrolledtext import ScrolledText
|
|
||||||
|
|
||||||
root = Tk()
|
root = Tk()
|
||||||
|
|
||||||
|
|
||||||
def quit_exe():
|
def quit_exe():
|
||||||
root.destroy()
|
root.destroy()
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
# Label
|
# Label
|
||||||
Label(root, text='更新日志').pack()
|
Label(root, text='更新日志').pack()
|
||||||
text = '''0.1.0 DEMO制作完成
|
Label(root, text='''0.1.0 DEMO制作完成
|
||||||
0.1.1 demo版本增加lbbAI网站
|
0.1.1 demo版本增加lbbAI网站
|
||||||
0.1.2 demo版本删除lbbAI网站,因为无法使用
|
0.1.2 demo版本删除lbbAI网站,因为无法使用
|
||||||
0.1.3 修复BUG
|
0.1.3 修复BUG
|
||||||
1.0 加入关于模块,更新网站aitianhu.top;修复“退出”按钮
|
1.0 加入关于模块,更新网站aitianhu.top;修复“退出”按钮的问题;''').pack()
|
||||||
的问题
|
|
||||||
1.0.1 修复BUG:移除“检查文件完整度”程序使用
|
|
||||||
(可以在github仓库的old文件夹里面看;修复其他BUG......
|
|
||||||
1.1 修复BUG;紧急修复Windows7无法使用情况!;重新修正UI界面
|
|
||||||
1.1.1 更新chatGPT网站;修改update文本显示设置。新增bnu120聊天网站
|
|
||||||
移除lbbai网站入口
|
|
||||||
|
|
||||||
当前版本:1.1 (Not beta or demo)'''
|
|
||||||
|
|
||||||
text_box = ScrolledText(root)
|
|
||||||
text_box.pack(fill=BOTH, expand=1)
|
|
||||||
text_box.insert(END, text)
|
|
||||||
text_box.configure(state='disabled')
|
|
||||||
|
|
||||||
|
Label(root, text='当前版本:1.0 (Not beta or demo)').pack()
|
||||||
|
|
||||||
# Button
|
# Button
|
||||||
quit_bt = Button(root, text='返回', command=quit_exe).pack()
|
quit_bt = Button(root, text='返回', command=quit_exe).pack()
|
||||||
|
|
||||||
|
|
||||||
# mainloop
|
# mainloop
|
||||||
root.title('更新日志')
|
root.title('更新日志')
|
||||||
root.geometry('355x250+400+400')
|
root.geometry('260x250+400+400')
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
53
xz.pyw
53
xz.pyw
@@ -1,53 +0,0 @@
|
|||||||
from tkinter import *
|
|
||||||
from tkinter import messagebox
|
|
||||||
import os
|
|
||||||
import webbrowser
|
|
||||||
|
|
||||||
|
|
||||||
root = Tk()
|
|
||||||
file_error = '重要文件丢失!请重新安装'
|
|
||||||
ml = os.getcwd()
|
|
||||||
|
|
||||||
# Define functions
|
|
||||||
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', file_error)
|
|
||||||
|
|
||||||
def extkj():
|
|
||||||
open_exe("extkj")
|
|
||||||
|
|
||||||
def wuguokai():
|
|
||||||
open_exe("wuguokai")
|
|
||||||
|
|
||||||
def qdymys():
|
|
||||||
open_exe("qdymys")
|
|
||||||
|
|
||||||
def bnu120():
|
|
||||||
open_exe('bnu120')
|
|
||||||
|
|
||||||
def fh():
|
|
||||||
root.destroy()
|
|
||||||
|
|
||||||
|
|
||||||
# Button
|
|
||||||
bt_wuguokai = Button(root, text='wuguokai网站', command=wuguokai)
|
|
||||||
bt_extkj = Button(root, text='extkj网站', command=extkj)
|
|
||||||
bt_qdymys = Button(root, text='qdymys网站', command=qdymys)
|
|
||||||
bt_lbbai = Button(root, text='bnu120网站', command=bnu120)
|
|
||||||
bt_fh = Button(root, text='返回', command=fh)
|
|
||||||
|
|
||||||
# pack and Label
|
|
||||||
Label(root, text='选择界面').pack()
|
|
||||||
bt_wuguokai.pack()
|
|
||||||
bt_extkj.pack()
|
|
||||||
bt_qdymys.pack()
|
|
||||||
bt_lbbai.pack()
|
|
||||||
bt_fh.pack()
|
|
||||||
|
|
||||||
|
|
||||||
# mainloop
|
|
||||||
root.title('选择')
|
|
||||||
root.geometry('200x200+440+600')
|
|
||||||
root.mainloop()
|
|
||||||
Reference in New Issue
Block a user