Provides
MacroPanel
panels.
Bases: PyQt5.QtWidgets.QDialog
PyQt5.QtWidgets.QDialog
The macro panel
_init_widgets
Inititialize widgets
_is_invalid_code
Preliminary code check
Returns a string with the error message if code is not valid Python. If the code runs without errors, an empty string is retruned.
str
_layout
Layout dialog widgets
on_apply
Event handler for Apply button
update
Update macro content
update_result_viewer
Update event result following execution by main window
result (str) – Text to be shown in the result viewer in default color
err (str) – Text to be shown in the result viewer in error text color