Equivalent to 'node.children[i] = child'. This method also sets the child's parent attribute appropriately.
(self, i, child)
| 286 | self.children[0].prefix = prefix |
| 287 | |
| 288 | def set_child(self, i, child): |
| 289 | """ |
| 290 | Equivalent to 'node.children[i] = child'. This method also sets the |
| 291 | child's parent attribute appropriately. |
| 292 | """ |
| 293 | child.parent = self |
| 294 | self.children[i].parent = None |
| 295 | self.children[i] = child |
| 296 | self.changed() |
| 297 | |
| 298 | def insert_child(self, i, child): |
| 299 | """ |