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
21.1. Overview of the Scripting Framework
21.2. Scripting API
21.3. Script Syntax
21.3.0. Script Attributes
21.3.1. Adding Scripts to the GUI
21.3.2. Argument Collection
21.3.3. Importing Other Modules
21.3.4. Internationalization and Localization
21.3.5. Plugin Extensions
21.4. Debugging Extension Scripts
21.5. Advanced Scripting
21.6. API Reference
21.6.0. API Reference - Utilities
21.6.1. API Reference - Application
21.6.2. API Reference - Editor
21.6.3. API Reference - Project
21.6.4. API Reference - Debugger
21.6.5. API Reference - Search
21.6.6. API Reference - Analysis