猫史档案馆


webbroser

用户:卫道士32_32*2没了卫道士32_32*2没了查看:0 回复:0 评论:0 创建时间:2020-05-30T16:27:17


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.resize(2000,2000)
        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_())

 

安装PySide2后执行,有惊喜!


回复

上一页1 页 / 共 0下一页