API Reference for Enthought Tool Suite 3.0.1
Scriptable is a wrapper around another trait that makes it scriptable, ie. changes to its value can be recorded. If a trait is read, but the value isn't set to another scriptable trait or passed to a scriptable method then the read will not be included in the recorded script. To make sure a read is always recorded set the 'has_side_effects' argument to True.
This is the decorator applied to functions and methods to mark them as being scriptable.
| Local name | Refers to |
|---|---|
| Any | enthought.traits.trait_types.Any |
| get_script_manager | enthought.appscripting.package_globals.get_script_manager |
| Property | enthought.traits.traits.Property |
| trait_cast | enthought.traits.traits.trait_cast |
| Undefined | enthought.traits.trait_base.Undefined |
© Copyright 2002-2008 Enthought, Inc.