(self, is_visible)
return super().setVisible(is_visible and len(self._layout) > 0)
Only display the legend if it contains any items.
Only display the legend if it contains any items.
Only display the legend if it contains any items .
def setVisible(self, is_visible):
        """Only display the legend if it contains any items."""
        return super().setVisible(is_visible and len(self._layout) > 0)
def setVisible ( self , is_visible ) : return super ( ) . setVisible ( is_visible and len ( self . _layout ) > 0 )