PyDMLogDisplay
- class pydm.widgets.logdisplay.PyDMLogDisplay(parent=None, logname=None, level=0)[source]
Bases:
QWidget
,LogLevels
Standard display for Log Output
This widget handles instantating a
GuiHandler
and displaying log messages to aQPlainTextEdit
. The level of the log can be changed from inside the widget itself, allowing users to select from any of the.levels
specified by the widget.- Parameters:
parent (QObject, optional) –
logname (str) – Name of log to display in widget
level (logging.Level) – Initial level of log display
- logFormat
Format for log messages
- logName
Name of associated log
- paintEvent(_)[source]
Paint events are sent to widgets that need to update themselves, for instance when part of a widget is exposed because a covering widget was moved.
At PyDMDrawing this method handles the alarm painting with parameters from the stylesheet, configures the brush, pen and calls
`draw_item`
so the specifics can be performed for each of the drawing classes.- Parameters:
event (QPaintEvent) –
Note
See QWidget Documentation for all inherited properties and methods.