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 a QPlainTextEdit. 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

clear()[source]

Clear the text area.

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) –

setLevel(level)[source]

Set the level of the contained logger

sizeHint(self) QSize[source]
write(message)[source]

Write a message to the log display

Note

See QWidget Documentation for all inherited properties and methods.