API Reference for Enthought Tool Suite 3.0.1
Methods using function calls.
Given a function and its path (optionally), open a function-call.
If the function is a user-defined/edited/saved function then make it editable. If the user edits the code of the user-function, overwrite the function and prompt the user to add the function. If the user does not edit the code of the function, just add it as other functions would be added.
To make a PythonFunctionInfo into a LocalFunctionInfo, we need to potentially change the name of the function, and add a line of imports into the function. Pass in the code, the old name, the name to rename to, and the module name of the original function
| Local name | Refers to |
|---|---|
| confirm | enthought.pyface.confirmation_dialog.confirm |
| error | enthought.pyface.message_dialog.error |
| ETSConfig | enthought.etsconfig.etsconfig.ETSConfig |
| get_code_from_file | enthought.block_canvas.function_tools.utils.get_code_from_file |
| os | os |
| re | re |
| USER_MODULE_NAME | enthought.block_canvas.function_tools.utils.USER_MODULE_NAME |
| YES | enthought.pyface.constant.YES |
© Copyright 2002-2008 Enthought, Inc.