Skip to content

Instantly share code, notes, and snippets.

@cfm
Created August 9, 2016 20:07
Show Gist options
  • Save cfm/8c0087eeafd3bc04f9d8c1898070858a to your computer and use it in GitHub Desktop.
Save cfm/8c0087eeafd3bc04f9d8c1898070858a to your computer and use it in GitHub Desktop.
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