libqtile/layout/tree.py
def add_section(self, name):
        """Add a new Section with the given name"""
        if name in self.sections:
            raise ValueError("Duplicate section name")
        node = Section(name)
        node.parent = self
        self.sections[name] = node
        self.children.append(node)
Add a new Section with the given name
Add a new Section with the given name
Add a new Section with the given name
def add_section(self, name):
        if name in self.sections:
            raise ValueError("Duplicate section name")
        node = Section(name)
        node.parent = self
        self.sections[name] = node
        self.children.append(node)
def add_section ( self , name ) : if name in self . sections : raise ValueError ( "Duplicate section name" ) node = Section ( name ) node . parent = self self . sections [ name ] = node self . children . append ( node )
Add a new Section with the given name
Add a new Section with the given name
"""Add a new Section with the given name"""
self
name