Skip to content

Python Editor Widget

Toni Hansen edited this page Oct 13, 2021 · 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, a code minimap as well as auto completion to some extent.

Python Editor

Toolbar

The toolbar provides the actions New File (1), Open File (2), Save (3), Save as (4), Execute Script (5), Toggle Minimap (6) and Search (7).

Python Editor Toolbar

New File

Opens a blank script in a new tab.

Open File

Opens an dialog to choose an existing python script from the hard disk. It will be opened in a new tab.

Save

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

Save as

Saves the script in the currently opened tab to the hard disk. A dialog opens where the user has to choose the location where the script should be saved.

Execute Script

Executes script in the currently opened tab.

Toggle Minimap

Toggles the minimap.

Search

Searches for text in the python script. Pressing the shortcut CTRL + F while the widget is focused or left-clicking the magnifying glass in the toolbar of the widget toggles the search bar. The filter is only active when the searchbar is visible. The magnifying glass in the toolbar changes to a green color to indicate that the filter is active.

Clone this wiki locally