You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously with on_trait_change handlers could be defined without arguments and occasionally code would call these handlers independent of any trait listening. With observe handlers are required to take a single event argument. So any such standalone callers are now passing event=None.
What we should do instead is, if any handler is such that we want to be able to call it stand alone, we should make it a regular old method that we call stand alone, and then have the handler call that method.
The text was updated successfully, but these errors were encountered:
ref: #864
Previously with
on_trait_change
handlers could be defined without arguments and occasionally code would call these handlers independent of any trait listening. Withobserve
handlers are required to take a singleevent
argument. So any such standalone callers are now passingevent=None
.What we should do instead is, if any handler is such that we want to be able to call it stand alone, we should make it a regular old method that we call stand alone, and then have the handler call that method.
The text was updated successfully, but these errors were encountered: