def resize(self, size):
        """
        Handles when the loader is too small for an area.
        
        :param      event | <QResizeEvent>
        """
        super(XLoaderWidget, self).resize(size)
        
        # show small loader
        if size.width() < self._loaderFrame.width() or \
           size.height() < self._loaderFrame.height():
            self._loaderFrame.hide()
            self._smallMovieLabel.show()
        
        # show regular loader
        else:
            self._loaderFrame.show()
            self._smallMovieLabel.hide()
def resize ( self , size ) : super ( XLoaderWidget , self ) . resize ( size ) if size . width ( ) < self . _loaderFrame . width ( ) or size . height ( ) < self . _loaderFrame . height ( ) : self . _loaderFrame . hide ( ) self . _smallMovieLabel . show ( ) else : self . _loaderFrame . show ( ) self . _smallMovieLabel . hide ( )
Handles when the loader is too small for an area.
        
        :param      event | <QResizeEvent>