Class: QgsMessageOutputConsole

class qgis.core.QgsMessageOutputConsole

Bases: PyQt5.QtCore.QObject, QgsMessageOutput

Default implementation of message output interface

This class outputs messages to the standard output. Therefore it might be the right choice for apps without GUI.

QgsMessageOutputConsole() Constructor for QgsMessageOutputConsole.

Methods

appendMessage

param message

childEvent

connectNotify

customEvent

disconnectNotify

isSignalConnected

receivers

sender

senderSignalIndex

setMessage

param message

setTitle

param title

showMessage

sends the message to the standard output

timerEvent

Signals

destroyed

signals that object will be destroyed and shouldn’t be used anymore [signal]

appendMessage(self, message: str)
Parameters

message (str) –

childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
destroyed

signals that object will be destroyed and shouldn’t be used anymore [signal]

disconnectNotify(self, QMetaMethod)
isSignalConnected(self, QMetaMethod)bool
receivers(self, PYQT_SIGNAL)int
sender(self)QObject
senderSignalIndex(self)int
setMessage(self, message: str, msgType: QgsMessageOutput.MessageType)
Parameters
setTitle(self, title: str)
Parameters

title (str) –

showMessage(self, blocking: bool = True)

sends the message to the standard output

Parameters

blocking (bool = True) –

timerEvent(self, QTimerEvent)