def METHOD_NAME(self, url, type, isMainFrame):
    if type == QtWebKit.QWebPage.NavigationTypeLinkClicked:
        webbrowser.open_new(url.toString())
        return False
    else:
        return super().METHOD_NAME(url, type, isMainFrame)