Equivalent to 'node.children.insert(i, child)'. This method also sets the child's parent attribute appropriately.
(self, i, child)
| 296 | self.changed() |
| 297 | |
| 298 | def insert_child(self, i, child): |
| 299 | """ |
| 300 | Equivalent to 'node.children.insert(i, child)'. This method also sets |
| 301 | the child's parent attribute appropriately. |
| 302 | """ |
| 303 | child.parent = self |
| 304 | self.children.insert(i, child) |
| 305 | self.changed() |
| 306 | |
| 307 | def append_child(self, child): |
| 308 | """ |