#NEWLINE# def switchTo( self , url ) : #NEWLINE# #INDENT# exists = False #NEWLINE# for i in range ( 0 , self . stackedWidget . count ( ) ) : #NEWLINE# #INDENT# if self . stackedWidget . widget ( i ) . url ( ) . toString ( ) . startswith ( url ) : #NEWLINE# #INDENT# self . stackedWidget . setCurrentIndex ( i ) #NEWLINE# self . quicklist ( self . current ( ) . listChannels ( ) ) #NEWLINE# self . current ( ) . setFocus ( ) #NEWLINE# self . leftPane . click ( i ) #NEWLINE# exists = True #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# if ( not exists ) : #NEWLINE# #INDENT# self . addWrapper ( url )