def setCurrentMode( self, mode ):
        """
        Sets the current mode for this widget to the inputed mode.  This will
        check against the valid modes for this browser and return success.
        
        :param      mode | <XOrbBrowserWidget.Mode>
        
        :return     <bool> | success
        """
        if ( not self.isModeEnabled(mode) ):
            return False
        
        if ( mode == XOrbBrowserWidget.Mode.Detail ):
            self.uiModeSTACK.setCurrentIndex(0)
            self.uiDetailsACT.setChecked(True)
        elif ( mode == XOrbBrowserWidget.Mode.Card ):
            self.uiModeSTACK.setCurrentIndex(1)
            self.uiCardACT.setChecked(True)
        else:
            self.uiModeSTACK.setCurrentIndex(2)
            self.uiThumbnailACT.setChecked(True)
        
        self.refreshResults()
        
        return True
def setCurrentMode ( self , mode ) : if ( not self . isModeEnabled ( mode ) ) : return False if ( mode == XOrbBrowserWidget . Mode . Detail ) : self . uiModeSTACK . setCurrentIndex ( 0 ) self . uiDetailsACT . setChecked ( True ) elif ( mode == XOrbBrowserWidget . Mode . Card ) : self . uiModeSTACK . setCurrentIndex ( 1 ) self . uiCardACT . setChecked ( True ) else : self . uiModeSTACK . setCurrentIndex ( 2 ) self . uiThumbnailACT . setChecked ( True ) self . refreshResults ( ) return True
Sets the current mode for this widget to the inputed mode.  This will
        check against the valid modes for this browser and return success.
        
        :param      mode | <XOrbBrowserWidget.Mode>
        
        :return     <bool> | success