Beispiel #1
0
    def __init__(self, delegate, subject, parentView):
        self.delegate = delegate
        self.parentView = parentView

        QWebEnginePage.__init__(self)
        Observation.__init__(self, subject)

        aceUrl = QUrl.fromLocalFile(
            os.path.join(utility.viewResourcesDir(), "ace", "index.html"))
        self.load(aceUrl)
Beispiel #2
0
 def __init__(self, url):
     self.app = QApplication(sys.argv)
     QWebEnginePage.__init__(self)
     self.loadFinished.connect(self._loadFinished)
     qurl = QtCore.QUrl(url)
     func = functools.partial(self.mainFrame().load, qurl)
     timer = QtCore.QTimer()
     timer.timeout.connect(func)
     timer.start(10000)
     self.app.exec_()
Beispiel #3
0
    def __init__(self, url, qapp):
        self.app = qapp
        print(self.app)
        QWebEnginePage.__init__(self)

        self.html = ''
        #self.loadFinished.connect(self._on_load_finished)

        self.q = QUrl(url)
        self.req = QWebEngineHttpRequest(self.q)
        self.req.setHeader(QByteArray(1, 'a'), QByteArray(2, 'b'))

        print(self.req.headers())
        self.load(self.req)
        print(self.req)
        self.setHtml(self.html, self.q)
        print(self.html)
Beispiel #4
0
 def __init__(self):
     QWebEnginePage.__init__(self)
Beispiel #5
0
 def __init__(self, *args, **kwargs):
     #print('in MyQWebEnginePage')
     QWebEnginePage.__init__(self, *args, **kwargs)
     self.webglsupport = None
 def __init__(self, parent=None):
    QWebEnginePage.__init__(self, parent)