Skip to content

Python Editor Widget

Tobias Hermanns edited this page Nov 4, 2020 · 15 revisions

The Python Editor Wiget provides a light weight code editor for developing Python scripts. From within the widget, multiple scripts can be opened, edited, run and saved. The editor behaves like a standard text editor with functions like undo, copy and past but also supports some quality of life features such as auto indent, simple syntax highlighting as well as auto completion to some extent.

Toolbar

The toolbar provides the actions New File (1), Open File (2), Save (3), Save as (4), [Execute Scripts] and Toggle Minimap (5).

New File

Opens a new python code editor as a tab.

Open File

Opens an existing python script through a file dialog.

Save

Saves the currently selected script if it was previously saved to or loaded from the hard disk. If the script is new this action is the same as Save as.

Save as

Saves the currently selected script to the hard disk through a file dialog.

Toggle Minimap

Toggles the minimap. The minimap is useful for long python scripts to maintain a better overview over the code.

Clone this wiki locally