Inherits from
- TraitHandler: enthought.traits.trait_handlers.TraitHandler
Attributes
Inherited from base classes
Method summary
- __init__(self, *args)
- full_info(self, object, name, value)
- get_editor(self, trait)
- validate(self, object, name, value)
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)
- 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, *args)
Creates a TraitTuple handler.
Parameters
- args : list of traits
- Each traiti specifies the type that the ith element of a tuple must be.
Description
Each traiti must be either a trait, or a value that can be converted to a trait using the Trait() function. The resulting trait handler accepts values that are tuples of the same length as args, and whose ith element is of the type specified by traiti.
- full_info(self, object, name, value)
- get_editor(self, trait)
- validate(self, object, name, value)