Inherits from
- TraitHandler: enthought.traits.trait_handlers.TraitHandler
Attributes
- default_value_type
default_value_type = 5
- info_trait
info_trait = None
Method summary
- __init__(self, trait = None, minlen = 0, maxlen = sys.maxint, has_items = True)
- clone(self)
- get_editor(self, trait)
- info(self)
- items_event(self)
- validate(self, object, name, value)
Methods
- __init__(self, trait = None, minlen = 0, maxlen = sys.maxint, has_items = True)
Creates a TraitList handler.
Parameters
- trait : trait
- The type of items the list can contain
- minlen : integer
- The minimum length of the list
- maxlen : integer
- The maximum length of the list
- has_items : boolean
- Flag indicating whether the list contains elements
Description
If trait is None or omitted, then no type checking is performed on any items in the list; otherwise, trait must be either a trait, or a value that can be converted to a trait using the Trait() function.
- clone(self)
- get_editor(self, trait)
- info(self)
- items_event(self)
- validate(self, object, name, value)