Created
July 7, 2016 02:54
-
-
Save cfm/7375c2a418c8548b0e76f659274f0092 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 | |
push_exception_handler(main=True, reraise_exceptions=True) | |
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