libqtile/layout/tree.py
def remove(self):
        """Removes this Window

        If this window has children, the first child takes the place of this
        window, and any remaining children are reparented to that node
        """
        if self.children:
            head = self.children[0]
            # add the first child to our parent, next to ourselves
            self.parent.add(head, hint=self)
            # move remaining children to be under the new head
            for i in self.children[1:]:
                head.add(i)

        self.parent.children.remove(self)
        del self.children
Removes this Window

        If this window has children, the first child takes the place of this
        window, and any remaining children are reparented to that node
        
Removes this Window
If this window has children, the first child takes the place of this
window, and any remaining children are reparented to that node
Removes this Window If this window has children the first child takes the place of this window and any remaining children are reparented to that node
def remove(self):
        if self.children:
            head = self.children[0]
            self.parent.add(head, hint=self)
            for i in self.children[1:]:
                head.add(i)
        self.parent.children.remove(self)
        del self.children
def remove ( self ) : if self . children : head = self . children [ 0 ] self . parent . add ( head , hint = self ) for i in self . children [ 1 : ] : head . add ( i ) self . parent . children . remove ( self ) del self . children
Removes this Window
If this window has children, the first child takes the place of this
window, and any remaining children are reparented to that node
Removes this Window If this window has children the first child takes the place of this window and any remaining children are reparented to that node
"""Removes this Window

        If this window has children, the first child takes the place of this
        window, and any remaining children are reparented to that node
        """ # add the first child to our parent, next to ourselves # move remaining children to be under the new head
self