def child_added(self, child):
super(WebComponent, self).child_added(child)<EOL>if child.widget is not None:<EOL><INDENT>for i, c in enumerate(self.children()):<EOL><INDENT>if c == child:<EOL><INDENT>self.widget.insert(i, child.widget)<EOL>break<EOL><DEDENT><DEDENT><DEDENT>
Handle the child added event from the declaration.

        This handler will insert the child toolkit widget in the correct.
        position. Subclasses which need more control should reimplement this
        method.