更新url
This commit is contained in:
parent
066d15c788
commit
072f5f615b
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue