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

        This handler will unparent the child toolkit widget. Subclasses
        which need more control should reimplement this method.