chatGPT
This commit is contained in:
@@ -1,30 +1,16 @@
|
|||||||
from PyQt5.QtCore import QUrl
|
import tkinter as tk
|
||||||
from PyQt5.QtWidgets import QApplication, QMainWindow, QAction
|
from tkinter import messagebox
|
||||||
from PyQt5.QtWebEngineWidgets import QWebEngineView
|
|
||||||
|
|
||||||
class Browser(QMainWindow):
|
def quit_exe():
|
||||||
def __init__(self):
|
root.destroy()
|
||||||
super().__init__()
|
|
||||||
|
|
||||||
# Create QWebEngineView widget
|
root = tk.Tk()
|
||||||
self.browser = QWebEngineView()
|
root.title('Error 422')
|
||||||
self.setCentralWidget(self.browser)
|
root.geometry('100x100')
|
||||||
|
|
||||||
# Create QAction widget for refresh button
|
messagebox.showerror('System', '别看了,已经废弃了')
|
||||||
refresh_action = QAction('Refresh', self)
|
|
||||||
refresh_action.triggered.connect(self.browser.reload)
|
|
||||||
self.toolbar = self.addToolBar('Refresh')
|
|
||||||
self.toolbar.addAction(refresh_action)
|
|
||||||
|
|
||||||
# Load website
|
btn_quit = tk.Button(root, text='退出', command=quit_exe)
|
||||||
self.browser.setUrl(QUrl('https://link.lbbai.com'))
|
btn_quit.pack()
|
||||||
|
|
||||||
# Set window properties
|
root.mainloop()
|
||||||
self.setWindowTitle('LBBai Browser')
|
|
||||||
self.setGeometry(0, 0, 800, 600)
|
|
||||||
self.show()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
app = QApplication([])
|
|
||||||
window = Browser()
|
|
||||||
app.exec_()
|
|
||||||
|
|||||||
@@ -35,7 +35,12 @@ def f1():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def lbb():
|
def lbb():
|
||||||
messagebox.showerror('system', '无法使用,已废弃')
|
if os.path.exists("{ml}\chatGPT_web\lbb.exe"):
|
||||||
|
os.system("start {ml}\chatGPT_web\lbb.exe")
|
||||||
|
else:
|
||||||
|
messagebox.showerror('system', flie_error)
|
||||||
|
pass
|
||||||
|
pass
|
||||||
|
|
||||||
def update():
|
def update():
|
||||||
if os.path.exists("{ml}\system\\update.exe"):
|
if os.path.exists("{ml}\system\\update.exe"):
|
||||||
|
|||||||
Reference in New Issue
Block a user