Add object `child` to the first map and store it for the second.
(self, child, name=None, index=None)
| 102 | return out |
| 103 | |
| 104 | def add_child(self, child, name=None, index=None): |
| 105 | """Add object `child` to the first map and store it for the second.""" |
| 106 | self.m1.add_child(child, name, index) |
| 107 | if index is None: |
| 108 | index = len(self.m2._children) |
| 109 | self.children_for_m2.append((child, name, index)) |
| 110 | |
| 111 | def render(self, **kwargs): |
| 112 | super().render(**kwargs) |