API Reference for Enthought Tool Suite 3.2.0
Core Trait definitions.
Allowed values and mappings for the 'adapt' keyword:
AdaptMap = { Const('no') : Const(0), Const('yes') : Const(1), Const('default') : Const(2) }
-- Date Trait definition ----------------------------------------------------
Date = BaseInstance(datetime.date, editor = date_editor)
Only a dictionary of string:Any values can be assigned; only string keys can be inserted. The default value is {}.
DictStrAny = Dict(str, Any)
Only a dictionary of string:Boolean values can be assigned; only string keys with Boolean values can be inserted. The default value is {}.
DictStrBool = Dict(str, bool)
Only a dictionary of string:float values can be assigned; only string keys with float values can be inserted. The default value is {}.
DictStrFloat = Dict(str, float)
Only a dictionary of string:integer values can be assigned; only string keys with integer values can be inserted. The default value is {}.
DictStrInt = Dict(str, int)
Only a dictionary of string:list values can be assigned; only string keys with list values can be assigned. The default value is {}.
DictStrList = Dict(str, list)
Only a dictionary of string:long-integer values can be assigned; only string keys with long-integer values can be inserted. The default value is {}.
DictStrLong = Dict(str, long)
Only a dictionary of string:string values can be assigned; only string keys with string values can be inserted. The default value is {}.
DictStrStr = Dict(str, str)
Synonym for Bool; default value is False.
false = Bool
List of Boolean values; default value is [].
ListBool = List(bool)
List of class values; default value is [].
ListClass = List(ClassType)
List of complex values; default value is [].
ListComplex = List(complex)
List of float values; default value is [].
ListFloat = List(float)
List of function values; default value is [].
ListFunction = List(FunctionType)
List of instance values; default value is [].
ListInstance = List(InstanceType)
List of integer values; default value is [].
ListInt = List(int)
List of method values; default value is [].
ListMethod = List(MethodType)
List of string values; default value is [].
ListStr = List(str)
List of container type values; default value is [].
ListThis = List(ThisClass)
List of Unicode string values; default value is [].
ListUnicode = List(unicode)
MutableTypes = (list, dict)
SetTypes = (SequenceTypes + (set))
-- Time Trait definition ----------------------------------------------------
Time = BaseInstance(datetime.time, editor = time_editor)
Boolean values only; default value is True.
true = Bool(True)
Allows any value to be assigned; no type-checking is performed. Default value is Undefined.
undefined = Any(Undefined)
Create a singleton instance as the trait:
Disallow = Disallow()
Create a singleton instance as the trait:
missing = missing()
Create a singleton instance as the trait:
ReadOnly = ReadOnly()
Checks to see if a specified value implements the instance class interface (if it is an interface).
© Copyright 2002-2009 Enthought, Inc.