Scripting and Extending Wing
Wing Pro and Wing Personal provide an API that can be used to extend the IDE's functionality with scripts written in Python. Scripts add to the IDE's command set, which is accessible from menus, the toolbar, and key bindings.
Wing finds and loads scripts at startup, and reloads them when they are edited within Wing and saved to disk. The API allows scripts to access the editor, debugger, project manager, search tools, source code analysis engine, asynchronous task manager, and a range of other functionality. The scripting API also provides access to all of Wing's preferences and commands.
Simple scripts can be developed and debugged using error messages displayed in the Scripts channel of the Messages tool. It is also possible to configure a project that supports auto-completion and integrated documentation for the scripting API, and that allows debugging extension scripts within Wing.
More advanced scripting, including the ability to add new tools, is available as well.
Section Contents
20.1. Overview of the Scripting Framework
20.2. Scripting API
20.3. Script Syntax
20.3.0. Script Attributes
20.3.1. Adding Scripts to the GUI
20.3.2. Argument Collection
20.3.3. Importing Other Modules
20.3.4. Internationalization and Localization
20.3.5. Plugin Extensions
20.4. Debugging Extension Scripts
20.5. Advanced Scripting
20.6. API Reference
20.6.0. API Reference - Utilities
20.6.1. API Reference - Application
20.6.2. API Reference - Editor
20.6.3. API Reference - Project
20.6.4. API Reference - Debugger
20.6.5. API Reference - Search
20.6.6. API Reference - Analysis