Python Scripting

The Scripting section of the Home tab has only three functions:

  1. New: Creates a new Python script
  2. Open: opens an existing Python script
  3. 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):

  1. Open
  2. Save
  3. Save-As
  4. Cut
  5. Copy
  6. Paste
  7. Run
  8. Record (turns red when on)
  9. Undo
  10. Redo
  11. Decrease Indentation (of selected lines)
  12. Increase Indentation (of selected lines)
  13. Comment-Out selected lines
  14. Uncomment selected lines
  15. Convert Tabs to Spaces (on selected lines)
  16. Remove all trailing whitespace characters (on selected lines)
  17. Find or Replace
  18. 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.