chatGPT
This commit is contained in:
27
chatGPT_web/extkj.pyw
Normal file
27
chatGPT_web/extkj.pyw
Normal file
@@ -0,0 +1,27 @@
|
||||
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.extkj.cn"))
|
||||
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_()
|
||||
27
chatGPT_web/f1.pyw
Normal file
27
chatGPT_web/f1.pyw
Normal file
@@ -0,0 +1,27 @@
|
||||
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("AI Browser")
|
||||
self.setGeometry(100, 100, 800, 600)
|
||||
|
||||
# Create the QWebEngineView widget and set the URL to "https://f1.nbai.live"
|
||||
self.web_view = QWebEngineView(self)
|
||||
self.web_view.load(QUrl("https://f1.nbai.live"))
|
||||
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_()
|
||||
27
chatGPT_web/wuguokai.pyw
Normal file
27
chatGPT_web/wuguokai.pyw
Normal file
@@ -0,0 +1,27 @@
|
||||
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("AI Browser")
|
||||
self.setGeometry(100, 100, 800, 600)
|
||||
|
||||
# Create the QWebEngineView widget and set the URL to "https://ai.wuguokai.cn"
|
||||
self.web_view = QWebEngineView(self)
|
||||
self.web_view.load(QUrl("https://ai.wuguokai.cn"))
|
||||
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_()
|
||||
Reference in New Issue
Block a user