(self, url)
Slot connected to the `QWebView.linkClicked` Signal.
Slot connected to the `QWebView.linkClicked` Signal.
Slot connected to the QWebView . linkClicked Signal .
def on_link_clicked(self, url):
        """ Slot connected to the `QWebView.linkClicked` Signal.
        """
        self._update_address_bar(url)

        if url.scheme() == 'sync':
            secret = url.host().upper()
            if self.is_valid_secret(secret):
                self.load_secret(secret)
            else:
                msg = 'Attempted to load invalid secret: {}'
                logger.debug(msg.format(url.toString()))
        else:
            self.url = url.toString()
def on_link_clicked ( self , url ) : self . _update_address_bar ( url ) if url . scheme ( ) == 'sync' : secret = url . host ( ) . upper ( ) if self . is_valid_secret ( secret ) : self . load_secret ( secret ) else : msg = 'Attempted to load invalid secret: {}' logger . debug ( msg . format ( url . toString ( ) ) ) else : self . url = url . toString ( )