def clear(self):
for child in self._children:<EOL><INDENT>self._detach_child(child)<EOL><DEDENT>self._children = []<EOL>self._sizes = {}<EOL>self._repack_and_regroup_children()<EOL>
Remove every widget from the layout.