Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5549b14c25 | ||
|
|
55eb0e074f |
4
f1.pyw
4
f1.pyw
@@ -8,9 +8,9 @@ class BrowserWindow(QMainWindow):
|
|||||||
self.setWindowTitle("AI Browser")
|
self.setWindowTitle("AI Browser")
|
||||||
self.setGeometry(100, 100, 800, 600)
|
self.setGeometry(100, 100, 800, 600)
|
||||||
|
|
||||||
# Create the QWebEngineView widget and set the URL to "https://f1.nbai.live"
|
# Create the QWebEngineView widget and set the URL to "https://chat.aiyunos.top"
|
||||||
self.web_view = QWebEngineView(self)
|
self.web_view = QWebEngineView(self)
|
||||||
self.web_view.load(QUrl("https://f1.nbai.live"))
|
self.web_view.load(QUrl("https://chat.aiyunos.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
|
||||||
|
|||||||
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
|
||||||
Reference in New Issue
Block a user