Inherits from
- cTrait: ctraits.cTrait
Attributes
- default
default = property(__get_default)
- default_kind
default_kind = property(__get_default_kind)
- inner_traits
inner_traits = property(__get_inner_traits)
- trait_type
trait_type = property(__get_trait_type)
Method summary
- __call__(self, *args, **metadata)
- __get_default(self)
- __get_default_kind(self)
- __get_inner_traits(self)
- __get_trait_type(self)
- __reduce_ex__(self, protocol)
- full_info(self, object, name, value)
- get_editor(self)
- get_help(self, full = True)
- info(self)
- is_trait_type(self, trait_type)
Methods
- __call__(self, *args, **metadata)
- __get_default(self)
- __get_default_kind(self)
- __get_inner_traits(self)
- __get_trait_type(self)
- __reduce_ex__(self, protocol)
- full_info(self, object, name, value)
Returns a description of the trait.
- get_editor(self)
Returns the user interface editor associated with the trait.
- get_help(self, full = True)
Returns the help text for a trait.
Parameters
- full : Boolean
- Indicates whether to return the value of the help attribute of the trait itself.
Description
If full is False or the trait does not have a help string, the returned string is constructed from the desc attribute on the trait and the info string on the trait's handler.
- info(self)
Returns a description of the trait.
- is_trait_type(self, trait_type)
Returns whether or not this trait is of a specified trait type.