(self, layout, newname)
Rename a layout
Rename a layout
Rename a layout
def rename_layout(self, layout, newname):
        """Rename a layout"""
        if layout in self.base.layouts:
            self.base.layouts[newname] = self.base.layouts[layout]
            del(self.base.layouts[layout])
def rename_layout ( self , layout , newname ) : if layout in self . base . layouts : self . base . layouts [ newname ] = self . base . layouts [ layout ] del ( self . base . layouts [ layout ] )