Inherits from
- TraitType: enthought.traits.trait_handlers.TraitType
Attributes
- ctrait_type
Defines the CTrait type to use for this trait:
ctrait_type = 3
- metadata
The standard metadata for the trait:
metadata = { Const('type') : Const('delegate'), Const('transient') : Name('False') }
Inherited from base classes
Method summary
- __init__(self, delegate, prefix = '', modify = False, listenable = True, **metadata)
- as_ctrait(self)
Inherited from base classes
- arg_error(self, method, arg_num, object, name, value)
- create_editor(self)
- dup_arg_error(self, method, arg_num, object, name)
- error(self, object, name, value)
- full_info(self, object, name, value)
- get_editor(self, trait = None)
- info(self)
- inner_traits(self)
- is_valid(self, object, name, value)
- keyword_error(self, method, object, name, value)
- missing_arg_error(self, method, arg_num, object, name)
- repr(self, value)
- return_error(self, method, object, value)
Methods
- __init__(self, delegate, prefix = '', modify = False, listenable = True, **metadata)
Creates a Delegate trait.
- as_ctrait(self)
Returns a CTrait corresponding to the trait defined by this class.