Python Scripting
The Scripting section of the Home tab has only three functions:
- New: Creates a new Python script
- Open: opens an existing Python script
- Run: runs an existing Python script
When a new script is created or an existing script is opened, the Python window is exposed, where all Python controls are located:
At the top of the window there are a series of (icon) buttons which provide the following functions (listed from left to right):
- Open
- Save
- Save-As
- Cut
- Copy
- Paste
- Run
- Record (turns red when on)
- Undo
- Redo
- Decrease Indentation (of selected lines)
- Increase Indentation (of selected lines)
- Comment-Out selected lines
- Uncomment selected lines
- Convert Tabs to Spaces (on selected lines)
- Remove all trailing whitespace characters (on selected lines)
- Find or Replace
- GoTo a specific line
On the far right side are two separate buttons which each have multiple options:
1. The first is the Open Windows button which provides these functions:
2. The second (far right) is the Options button which controls display of Whitespace.
The methodology for using Python in EVS is covered in a Premium Training Video.