vdat.gui.logger_widget
– Logging widget¶
Logging handlers
-
class
vdat.gui.logger_widget.
TextWindowHandler
(browser, parent=None)[source]¶ Bases:
PyQt5.QtCore.QObject
,logging.Handler
This is an implementation of a logging Handler that prints log messages to a QTextEdit widget
¶ Name Signature Description postText
string emit the signal with the text to submit ¶ Name Signature Description post_to_panel()
string append the incoming message to textBrowser
¶ Signal Slot postText
post_to_panel()
Parameters: - browser :
PyQt5.QtWidgets.QTextEdit
A text edit widget to write the information to
- parent : qobject, optional
parent of the QObject used to create the logger
Attributes: - textBrowser :
PyQt5.QtWidgets.QTextEdit
text widget where the log message is posted
-
postText
¶
-
emit
(record)[source]¶ Construct a string in HTML out of the record, and emit a signal that tells another function to update the text browser
Parameters: - record :
logging.LogRecord
a record from a logger
- record :
- browser :