API Reference for Enthought Tool Suite 3.0.1
Create and return a new type based on the given scripted_type that will (by default) have its public methods and traits (ie. those not beginning with an underscore) made scriptable.
name is the name that objects of this type will be bound to. It defaults to the name of scripted_type with the first character forced to lower case. It is ignored if script_init is False.
bind_policy determines what happens if a name is already bound. If the policy is 'auto' then a numerical suffix will be added to the name, if necessary, to make it unique. If the policy is 'unique' then an exception is raised. If the policy is 'rebind' then the previous binding is discarded. It is ignored if script_init is False. The default is 'auto'.
If api is given then it is a class, or a list of classes, that define the attributes that will be made scriptable.
Otherwise if includes is given it is a list of names of attributes that will be made scriptable.
Otherwise all the public attributes of scripted_type will be made scriptable except those in the excludes list.
Irrespective of any other arguments, if script_init is set then the __init__() method will always be made scriptable.
Make (by default) an object's public methods and traits (ie. those not beginning with an underscore) scriptable.
If api is given then it is a class, or a list of classes, that define the attributes that will be made scriptable.
Otherwise if includes is given it is a list of names of attributes that will be made scriptable.
Otherwise all the public attributes of scripted_type will be made scriptable except those in the excludes list.
| Local name | Refers to |
|---|---|
| get_script_manager | enthought.appscripting.package_globals.get_script_manager |
| HasTraits | enthought.traits.has_traits.HasTraits |
| inspect | inspect |
| Scriptable | enthought.appscripting.scriptable.Scriptable |
| scriptable | enthought.appscripting.scriptable.scriptable |
| types | types |
© Copyright 2002-2008 Enthought, Inc.