Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3a8cda57b | ||
|
|
3e7bfb617a | ||
|
|
b4c20606e6 | ||
|
|
05d66211a3 | ||
|
|
2ea30091f7 | ||
|
|
eb9be60dc6 | ||
|
|
ac7f1a0a29 | ||
|
|
5549b14c25 | ||
|
|
55eb0e074f |
@@ -8,9 +8,9 @@ class BrowserWindow(QMainWindow):
|
||||
self.setWindowTitle("AI Browser")
|
||||
self.setGeometry(100, 100, 800, 600)
|
||||
|
||||
# Create the QWebEngineView widget and set the URL to "https://f1.nbai.live"
|
||||
# Create the QWebEngineView widget
|
||||
self.web_view = QWebEngineView(self)
|
||||
self.web_view.load(QUrl("https://f1.nbai.live"))
|
||||
self.web_view.load(QUrl("https://chat2.aitianhu.top"))
|
||||
self.setCentralWidget(self.web_view)
|
||||
|
||||
# Create the QToolBar widget and add a QAction for the refresh button
|
||||
46
client.pyw
46
client.pyw
@@ -2,6 +2,7 @@ import os
|
||||
import platform
|
||||
import tkinter as tk
|
||||
from tkinter import messagebox
|
||||
from time import sleep
|
||||
|
||||
# Define constants
|
||||
CURRENT_DIR = os.getcwd()
|
||||
@@ -22,10 +23,7 @@ def wuguokai():
|
||||
open_exe("wuguokai")
|
||||
|
||||
def f1():
|
||||
open_exe("f1")
|
||||
|
||||
def lbb():
|
||||
open_exe("lbb")
|
||||
open_exe("aiyunos")
|
||||
|
||||
def update():
|
||||
if os.path.exists(os.path.join(CURRENT_DIR, "update.exe")):
|
||||
@@ -42,8 +40,42 @@ def user_xy():
|
||||
pass
|
||||
|
||||
def quit_exe():
|
||||
os.system('taskkill -f -t -im aiyunos.exe')
|
||||
os.system('taskkill -f -t -im extkj.exe')
|
||||
os.system('taskkill -f -t -im gk.exe')
|
||||
os.system('taskkill -f -t -im update.exe')
|
||||
os.system('taskkill -f -t -im wuguokai.exe')
|
||||
root.destroy()
|
||||
|
||||
def file_jc():
|
||||
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
|
||||
|
||||
def gk():
|
||||
open_exe("gk")
|
||||
|
||||
def sittings():
|
||||
st = tk.Tk()
|
||||
bt_xy = tk.Button(st, text='使用协议(使用前必看)', command=user_xy)
|
||||
bt_update = tk.Button(st, text='更新日志', command=update)
|
||||
bt_gk = tk.Button(st, text='关于', command=gk)
|
||||
bt_fj = tk.Button(st, text='检查文件完整度', command=file_jc)
|
||||
# pack
|
||||
bt_update.pack()
|
||||
bt_gk.pack()
|
||||
bt_fj.pack()
|
||||
bt_xy.pack()
|
||||
# mainloop
|
||||
st.title('设置')
|
||||
st.geometry("200x200+400+600")
|
||||
st.mainloop()
|
||||
|
||||
|
||||
# Create GUI
|
||||
root = tk.Tk()
|
||||
root.title('chatGPT')
|
||||
@@ -52,16 +84,12 @@ tk.Label(root, text='chatGPT').pack()
|
||||
|
||||
bt_w = tk.Button(root, text='wuguokai网站', command=wuguokai)
|
||||
bt_e = tk.Button(root, text='extkj网站', command=extkj)
|
||||
bt_f1 = tk.Button(root, text='f1网站', command=f1)
|
||||
bt_xy = tk.Button(root, text='使用协议(使用前必看)', command=user_xy)
|
||||
bt_update = tk.Button(root, text='更新日志', command=update)
|
||||
bt_f1 = tk.Button(root, text='aitianhu网站', command=f1)
|
||||
quit_bt = tk.Button(root, text='退出', command=quit_exe)
|
||||
|
||||
bt_w.pack()
|
||||
bt_e.pack()
|
||||
bt_f1.pack()
|
||||
bt_xy.pack()
|
||||
bt_update.pack()
|
||||
quit_bt.pack()
|
||||
|
||||
# mainloop
|
||||
|
||||
13
command.py
Normal file
13
command.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
from time import sleep
|
||||
|
||||
def run_cmd():
|
||||
print("正在启动")
|
||||
sleep(0.5)
|
||||
for i in range(3):
|
||||
os.system("start powershell")
|
||||
pass
|
||||
pass
|
||||
|
||||
sleep(0.2)
|
||||
run_cmd()
|
||||
25
gk.pyw
Normal file
25
gk.pyw
Normal file
@@ -0,0 +1,25 @@
|
||||
from tkinter import *
|
||||
from tkinter import messagebox
|
||||
import webbrowser
|
||||
|
||||
|
||||
root = Tk()
|
||||
web = webbrowser
|
||||
|
||||
|
||||
def fh():
|
||||
root.destroy()
|
||||
|
||||
def run_web():
|
||||
web.open("https://github.com/dengrb1/chatgpt")
|
||||
pass
|
||||
|
||||
Label(root, text='关于').pack()
|
||||
Label(root ,text='程序官方下载地址:https://github.com/dengrb1/chatgpt/').pack()
|
||||
|
||||
# button
|
||||
Button(root ,text='打开网站', command=run_web).pack()
|
||||
Button(root ,text='返回', command=fh).pack()
|
||||
|
||||
|
||||
# mainloop
|
||||
64
if_file.py
Normal file
64
if_file.py
Normal file
@@ -0,0 +1,64 @@
|
||||
import os
|
||||
from time import sleep
|
||||
|
||||
|
||||
file_error = '文件丢失,请检查目录文件完整度'
|
||||
ml = os.getcwd
|
||||
maths = 0
|
||||
error = 0
|
||||
|
||||
|
||||
def file_jx(exe_name):
|
||||
maths += 1
|
||||
if os.path.exists(os.path.join(ml, f"{exe_name}")):
|
||||
print(f'文件{maths}正常存在')
|
||||
else:
|
||||
error += 1
|
||||
print(f"丢失{error}文件")
|
||||
pass
|
||||
pass
|
||||
|
||||
def extkj():
|
||||
file_jx("extkj")
|
||||
|
||||
def wuguokai():
|
||||
file_jx("wuguokai")
|
||||
|
||||
def f1():
|
||||
file_jx("aiyunos")
|
||||
|
||||
def update():
|
||||
if os.path.exists(os.path.join(ml, "update.exe")):
|
||||
maths += 1
|
||||
print(f'文件{maths}正常存在')
|
||||
else:
|
||||
error += 1
|
||||
print(f"丢失{error}文件")
|
||||
pass
|
||||
pass
|
||||
|
||||
def gk():
|
||||
file_jx("gk")
|
||||
|
||||
|
||||
# mainloop
|
||||
print('检查中')
|
||||
sleep(0.85555)
|
||||
|
||||
extkj()
|
||||
wuguokai()
|
||||
f1()
|
||||
update()
|
||||
gk()
|
||||
|
||||
sleep(0.5)
|
||||
print('检查完成,共有{maths}个文件正常,{error}个文件丢失')
|
||||
|
||||
if str(input('是否退出?(Y.是 B.不是')) == "Y" or 'y' or '1':
|
||||
exit()
|
||||
else:
|
||||
print('请手动退出')
|
||||
while True:
|
||||
sleep(1)
|
||||
pass
|
||||
|
||||
16
lbb.pyw
16
lbb.pyw
@@ -1,16 +0,0 @@
|
||||
import tkinter as tk
|
||||
from tkinter import messagebox
|
||||
|
||||
def quit_exe():
|
||||
root.destroy()
|
||||
|
||||
root = tk.Tk()
|
||||
root.title('Error 422')
|
||||
root.geometry('100x100')
|
||||
|
||||
messagebox.showerror('System', '别看了,已经废弃了')
|
||||
|
||||
btn_quit = tk.Button(root, text='退出', command=quit_exe)
|
||||
btn_quit.pack()
|
||||
|
||||
root.mainloop()
|
||||
@@ -14,9 +14,10 @@ Label(root, text='更新日志').pack()
|
||||
Label(root, text='''0.1.0 DEMO制作完成
|
||||
0.1.1 demo版本增加lbbAI网站
|
||||
0.1.2 demo版本删除lbbAI网站,因为无法使用
|
||||
0.1.3 修复BUG''').pack()
|
||||
0.1.3 修复BUG
|
||||
1.0 加入关于模块,更新网站aitianhu.top;修复“退出”按钮的问题;''').pack()
|
||||
|
||||
Label(root, text='当前版本:0.1.3 beta_demo').pack()
|
||||
Label(root, text='当前版本:1.0 (Not beta or demo)').pack()
|
||||
|
||||
# Button
|
||||
quit_bt = Button(root, text='返回', command=quit_exe).pack()
|
||||
|
||||
Reference in New Issue
Block a user