def create_layout(self, name, copy_current=False): """ Arguments: - `name`: - `copy_current`: """ dock_layout = DockLayout(self) if self.container.layout == None or not copy_current: dock_layout = self.get_default_layout() else: self.container.store_allocation() dock_layout = self.container.layout.clone() dock_layout.name = name self.layouts[name] = dock_layout