I which to display the errors into a QPlainTextEdit or any other widget more suitable for that.
QPlainTextEdit
code.py: