def stop(widget, force=False):
        """
        Stops a loader widget on the inputed widget.
        
        :param      widget | <QWidget>
        """
        # make sure we have a widget to stop
        loader = getattr(widget, '_private_xloader_widget', None)
        if not loader:
            return
        
        # decrement the number of times this loader was created for the widget
        # to allow for stacked closure
        count = getattr(widget, '_private_xloader_count', 0)
        if force or count <= 1:
            # close out the loader widget
            setattr(widget, '_private_xloader_count', 0)
            setattr(widget, '_private_xloader_widget', None)
            
            loader.close()
            loader.setParent(None)
            loader.deleteLater()
        else:
            setattr(widget, '_private_xloader_count', count - 1)
def stop ( widget , force = False ) : loader = getattr ( widget , '_private_xloader_widget' , None ) if not loader : return count = getattr ( widget , '_private_xloader_count' , 0 ) if force or count <= 1 : setattr ( widget , '_private_xloader_count' , 0 ) setattr ( widget , '_private_xloader_widget' , None ) loader . close ( ) loader . setParent ( None ) loader . deleteLater ( ) else : setattr ( widget , '_private_xloader_count' , count - 1 )
Stops a loader widget on the inputed widget.
        
        :param      widget | <QWidget>