Use the Python Module to write shared Python code that can be imported into other Python configurations. This allows you to organize your Python code in different modules that can be reused.
...
Enter Python code in the code area. Below the text area there are line, column and position indicators to help you find syntax errors.
Toolbar
The toolbar includes the following options:
Option | Description |
---|---|
New | Creates a new Python Module configuration in a new tab. You can only create a configuration of the same kind as the one in the tab you are working in. |
Open | Opens a saved configuration that is visible in a new tab. You can only open a configuration of the same kind as the one in the tab you are working in. |
Save | Saves the configuration. After clicking Save, a dialog box opens. In the Version Comment text box, you can enter a description of the changes that you have made, then click . |
Save As | Select to save the configuration with a new name. You can only use a-z, A-Z, 0-9, "-" and "_" to name a configuration. After clicking Save As, a dialog box opens. Select in which folder you want to save the configuration. In the Version Comment text box, you can enter a description of the changes made. Then click . |
Permissions | To set the owner of the configuration as well as Read, Write and Execute permissions for the groups accessing the configuration. |
Validate | Runs the current Python code. The status of the validation is displayed in a dialog. Upon failure, the erroneous line is highlighted and a message, including the line number, is displayed. |
References | Select to see the listing references to and from the active configuration. The includes the following tabs:
|
History | Displays a drop-down list with file changes in the lower section of the window. If a file is selected, comments related to the file change are displayed. |
Undo | Select this option to undo your last action. |
Redo | Select this option to redo the last action you "undid" with the Undo option. |
Cut | Cuts your selection and copies it to the clipboard. |
Copy | Copies the selection to the clipboard. |
Paste | Pastes the clipboard contents. |
Find | Displays a dialog where you can search for text and, if required, replace it. |
Find Again | Repeats the search for the last string entered in the Find dialog. |
Code Editor Assistance
To provide assistance when you are writing code in the Python code area, there are several features in place:
...
For further information on these features, see Code Editor Assistance.
Code Editor Outline
To make it easier to navigate in a Python code configuration, there is an Outline navigation panel to the right of the Code Editor.
...
The Outline navigation panel can be hidden or visible. By default, it is visible and all the elements are displayed. To hide or display the navigation panel, click the vertical Outline button to the right of the Code Editor.
Configuration Diff Panel
To compare the current version of a Python configuration displayed with a previous version of the same configuration, use Configuration Diff to compare the two versions side by side.
...