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