QLoggingTableModel
¶
digraph inheritance14efcdae4f {
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"Filterer" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A base class for loggers and handlers which allows them to share"];
"Handler" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Handler instances dispatch logging events to specific destinations."];
"Filterer" -> "Handler" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QAbstractItemModel" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"QObject" -> "QAbstractItemModel" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QAbstractTableModel" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"QAbstractItemModel" -> "QAbstractTableModel" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QLoggingTableModel" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"QAbstractTableModel" -> "QLoggingTableModel" [arrowsize=0.5,style="setlinewidth(0.5)"];
"Handler" -> "QLoggingTableModel" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QObject" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"];
"simplewrapper" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"wrapper" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
-
class
QLoggingTableModel
(parent=None, capacity=500000, freq=0.25)[source]¶ Bases:
PyQt5.QtCore.QAbstractTableModel
,logging.Handler
-
DftColSize
= (PyQt5.QtCore.QSize(80, 20), PyQt5.QtCore.QSize(200, 20), PyQt5.QtCore.QSize(300, 20), PyQt5.QtCore.QSize(180, 20), PyQt5.QtCore.QSize(240, 20))¶
-
DftFont
= <PyQt5.QtGui.QFont object>¶
-
close
()[source]¶ Tidy up any resources used by the handler.
This version removes the handler from an internal map of handlers, _handlers, which is used for handler lookup by name. Subclasses should ensure that this gets called from overridden close() methods.
-
emit
(record)[source]¶ Do whatever it takes to actually log the specified logging record.
This version is intended to be implemented by subclasses and so raises a NotImplementedError.
-