Inherits from
- TraitType: enthought.traits.trait_handlers.TraitType
Attributes
- info_text
The informational text describing the trait:
info_text = 'a unique string'
- str_type
The type value to assign to restore the original list item type when a list item is removed from the monitored list:
str_type = TraitValue()
Inherited from base classes
Method summary
- __init__(self, owner, list_name, str_name, default_value = NoDefaultSpecified, **metadata)
- 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)
- 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, owner, list_name, str_name, default_value = NoDefaultSpecified, **metadata)
Initializes the type.
- validate(self, object, name, value)
Ensures that a value being assigned to a trait is a unique string.