def reset_states_if(self, predicate, **states):
filtered_states = {<EOL>k: w for k,w in states.items()<EOL>if predicate(w)<EOL>}<EOL>self.reset_states(**filtered_states)<EOL>
Remove any states associates with widgets that satisfy the given 
predicate.

See `add_states_if()` for a description of the predicate argument.