Equivalent to 'node.children.append(child)'. This method also sets the child's parent attribute appropriately.
(self, child)
| 305 | self.changed() |
| 306 | |
| 307 | def append_child(self, child): |
| 308 | """ |
| 309 | Equivalent to 'node.children.append(child)'. This method also sets the |
| 310 | child's parent attribute appropriately. |
| 311 | """ |
| 312 | child.parent = self |
| 313 | self.children.append(child) |
| 314 | self.changed() |
| 315 | |
| 316 | |
| 317 | class Leaf(Base): |