def reset_states(self, **states):
for state in list(self.known_states):<EOL><INDENT>self._remove_state(state)<EOL><DEDENT>for state, widget in states.items():<EOL><INDENT>self._add_state(state, widget)<EOL><DEDENT>self._repack_and_regroup_children()<EOL>
Remove any existing states and replace them with the ones specified in 
the keyword arguments.

Called without any arguments, this is an alias for `clear()`.