def acceptNavigationRequest(self, aUrl, aType, aIsMainFrame): print("{} {}".format(aType, aUrl)) if aType == QWebEnginePage.NavigationTypeLinkClicked: print(aUrl) return False return QWebEnginePage.acceptNavigationRequest(self, aUrl, aType, aIsMainFrame)
def acceptNavigationRequest(self, url, _type, isMainFrame): print("acceptNavigationRequest") print(url) return QWebEnginePage.acceptNavigationRequest(self, url, _type, isMainFrame)