code: def child_removed(self, child):
          
          layout = self.layout
          if child.widget is not None:
              layout.removeArrangedSubview(child.widget)
              layout.removeSubview(child.widget)
docs: Handle the child removed event from the declaration.
  
          The child must be both removed from the arrangement and removed 
          normally.