panels.*

Provides

class panels.MacroPanel(parent, code_array)[source]

Bases: QDialog

The macro panel

_init_widgets()[source]

Inititialize widgets

_is_invalid_code()[source]

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 returned.

Return type:

str

_layout()[source]

Layout dialog widgets

on_apply()[source]

Event handler for Apply button

update()[source]

Update macro content

update_result_viewer(result='', err='')[source]

Update event result following execution by main window

Parameters:
  • 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