Currently, scripts report their output through logging.
However, the log output doesn't render whilst the script is running.
This could be a good first step to indicate how far along a script is and to show the user that it's indeed doing something.
We could imagine adding a QPlainTextEdit with a particular name LogOutput or something like that. In the ScriptDialogItem, if we find such QPlainTextEdit, we initalize it in readonly log mode, and redirect the logging output to it.
Hint: there's a small syntaxhilighting in GUI that could be used, see LogHighlighter
Currently, scripts report their output through logging. However, the log output doesn't render whilst the script is running.
This could be a good first step to indicate how far along a script is and to show the user that it's indeed doing something.
We could imagine adding a
QPlainTextEdit
with a particular nameLogOutput
or something like that. In theScriptDialogItem
, if we find suchQPlainTextEdit
, we initalize it in readonly log mode, and redirect the logging output to it. Hint: there's a small syntaxhilighting in GUI that could be used, seeLogHighlighter