(self, name, layout)
return(True)
Add a new layout
Add a new layout
Add a new layout
def add_layout(self, name, layout):
        """Add a new layout"""
        if name in self.layouts:
            return(False)
        self.layouts[name] = layout
        return(True)
def add_layout ( self , name , layout ) : if name in self . layouts : return ( False ) self . layouts [ name ] = layout return ( True )