def remove_child(self, widget):
raw = list(filter(lambda x: x[<NUM_LIT:0>] == widget, self._items))<EOL>if raw:<EOL><INDENT>itm, wrapped = raw[<NUM_LIT:0>]<EOL>self._items.remove(raw[<NUM_LIT:0>])<EOL>super(List, self).remove_child(wrapped)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Remove a widget from the list.

:param widget: Object inheriting :class:`~.widgets.base.BaseElement`