API Reference for Enthought Tool Suite 3.2.0
DEnum = Property(DEnumHelper.get_value, DEnumHelper.set_value, values_name = 'values', editor = (DEnumHelper.make_editor, { Const('trait') : Name('None') }))
DEnum = TraitFactory(DEnum)
Works the same way as getattr, except that name can be of the form 'a.b.c' (as many levels as you like). For example:
>>> class A: ... pass ... >>> a = A() >>> a.b = A() >>> a.b.c = 1 >>> super_getattr(a, 'b.c') 1 >>> super_getattr(a.b, 'c') 1
Works the same way as setattr, except that name can be of the form 'a.b.c' (as many levels as you like). For example:
>>> class A: ... pass ... >>> a = A() >>> a.b = A() >>> super_setattr(a, 'b.c', 1) >>> a.b.c 1
| Local name | Refers to |
|---|---|
| EnumEditor | enthought.traits.ui.editors.enum_editor.EnumEditor |
| Int | enthought.traits.trait_types.Int |
| Property | enthought.traits.traits.Property |
| trait_cast | enthought.traits.traits.trait_cast |
| TraitError | enthought.traits.trait_errors.TraitError |
| TraitFactory | enthought.traits.traits.TraitFactory |
| TraitType | enthought.traits.trait_handlers.TraitType |
© Copyright 2002-2009 Enthought, Inc.