API Reference for Enthought Tool Suite 2.7.1
Some (hopefully) useful types!
A type that allows ANY type to be assigned to it!
any_type = TypeDef(id = 'com.enthought.component.any_type', name = 'Any', description = 'Any value', trait = Any)
A type that expects a Numeric array.
array_type = TypeDef(id = 'com.enthought.component.array_type', name = 'Array', description = 'An array (vector)', trait = Trait(None, TraitInstance(Numeric.ArrayType)))
A type that expects a Quantity.
quantity_type = TypeDef(id = 'com.enthought.component.quantity_type', name = 'Quantity', description = 'A quantity', trait = Trait(None, TraitInstance(Quantity)))
A type that expects a scalar value.
scalar_type = TypeDef(id = 'com.enthought.component.scalar_type', name = 'Scalar', description = 'A scalar value', trait = Any)
A type that expects a string.
string_type = TypeDef(id = 'com.enthought.component.string_type', name = 'String', description = 'A string', trait = Any)
| Local name | Refers to |
|---|---|
| Any | enthought.traits.traits.Any |
| Quantity | enthought.units.quantity.Quantity |
| Trait | enthought.traits.traits.Trait |
| TraitInstance | enthought.traits.trait_handlers.TraitInstance |
| TypeDef | enthought.component.type_def.TypeDef |
Copyright © 2002-2008 Enthought, Inc.