更新url

This commit is contained in:
Irony 2020-01-19 14:41:24 +08:00
parent 066d15c788
commit 072f5f615b

View file

@ -35,6 +35,7 @@ html2canvas(el[0], {
windowWidth: el.outerWidth(true),
}).then(function(canvas) {
window._self.saveImage(canvas.toDataURL());
canvas = null;
});
"""
@ -96,7 +97,7 @@ class Window(QWidget):
settings.setAttribute(QWebEngineSettings.ScreenCaptureEnabled, True)
self.webView.loadStarted.connect(self.onLoadStarted)
self.webView.loadFinished.connect(self.onLoadFinished)
self.webView.load(QUrl("https://pyqt5.com"))
self.webView.load(QUrl("https://pyqt.site"))
def onLoadStarted(self):
print('load started')