(self, i, child)
Equivalent to 'node.children.insert(i, child)'. This method also sets
        the child's parent attribute appropriately.
Equivalent to 'node.children.insert(i, child)'. This method also sets
        the child's parent attribute appropriately.
Equivalent to node . children . insert ( i child ) . This method also sets the child s parent attribute appropriately .
def insert_child(self, i, child):
        """
        Equivalent to 'node.children.insert(i, child)'. This method also sets
        the child's parent attribute appropriately.
        """
        child.parent = self
        self.children.insert(i, child)
        self.changed()
def insert_child ( self , i , child ) : child . parent = self self . children . insert ( i , child ) self . changed ( )