(self, name, layout)
return(True)
Replaces a layout with the given name
Replaces a layout with the given name
Replaces a layout with the given name
def replace_layout(self, name, layout):
        """Replaces a layout with the given name"""
        if not name in self.layouts:
            return(False)
        self.layouts[name] = layout
        return(True)
def replace_layout ( self , name , layout ) : if not name in self . layouts : return ( False ) self . layouts [ name ] = layout return ( True )