Inherits from
- TraitHandler: enthought.traits.trait_handlers.TraitHandler
Attributes
Inherited from base classes
Method summary
- __getstate__(self)
- __init__(self, *values)
- get_editor(self, trait)
- info(self)
- 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)
- full_info(self, object, name, value)
- 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
- __getstate__(self)
- __init__(self, *values)
Creates a TraitPrefixList handler.
Parameters
- values : list or tuple of strings
- Enumeration of all legal values for a trait
Description
As with TraitEnum, the list of legal values can be provided as a list of values. That is, TraitPrefixList(['one', 'two', 'three']) and TraitPrefixList('one', 'two', 'three') are equivalent.
- get_editor(self, trait)
- info(self)
- validate(self, object, name, value)