Created
August 9, 2016 20:07
-
-
Save cfm/8c0087eeafd3bc04f9d8c1898070858a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from traits.api import Bool, HasTraits | |
from traits.api import push_exception_handler | |
class Foo(HasTraits): | |
bar = Bool | |
def _bar_changed(self, old, new): | |
raise Exception('foo changed') | |
f = Foo() | |
f.bar = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment