API Reference for Enthought Tool Suite 2.7.1
Defines the HasTraits class, along with several useful subclasses and associated metaclasses.
BaseTraits = '__base_traits__'
ClassTraits = '__class_traits__'
The default Traits View name
DefaultTraitsView = 'traits_view'
FunctionTypes = (FunctionType, CTraitMethod)
InstanceTraits = '__instance_traits__'
MethodTypes = (MethodType, CTraitMethod)
PrefixTraits = '__prefix_traits__'
SubclassTraits = '__subclass_traits__'
VetoableEvent = Event(Vetoable)
ViewTraits = '__view_traits__'
WrapperTypes = (StaticAnyTraitChangeNotifyWrapper, StaticTraitChangeNotifyWrapper)
Declares that the method defined immediately following a call to this function is type-checked.
Whenever the type-checked method is called, the method() function ensures that each parameter passed to the method of the type specified by arg_types and kwarg_types, and that the return value is of the type specified by return_type. It is an error to specify both positional and keyword definitions for the same method parameter. If a parameter defined by the type-checked method is not referenced in the method() call, the parameter is not type-checked (i.e., its type is implicitly set to Any). If the call to method() signature contains an arg_types or kwarg_types parameter that does not correspond to a parameter in the type-checked method definition, a TraitError exception is raised.
Factory function for creating type-checked methods.
Copyright © 2002-2008 Enthought, Inc.