用户:
卫道士32_32*2没了查看:1 回复:1 评论:1 创建时间:2020-05-30T17:06:16
import sys
from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
from PySide2.QtWebEngineWidgets import *
class MainWindow(QMainWindow):
def __init__(self,parent = None):
super().__init__(parent)
self.setWindowTitle("b3")
self.showMaximized()
self.view = View(self)
self.setCentralWidget(self.view)
class View(QWebEngineView):
def __init__(self,parent = None):
super().__init__(parent)
self.load(QUrl("http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8"))
self.show()
if __name__ =="__main__":
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())