def findChild(self, name):
        """ Return the child with the given name from the tree """

        # Note - this returns the first child of the given name
        # any other children with similar names down the tree
        # is not considered.
        
        for child in self.getAllChildren():
            if child.getName() == name:
                return child
 Return the child with the given name from the tree 
recipes/Python/498249_Composite_designpattern_using/recipe-498249.py