spinetoolbox.widgets.custom_qtextbrowser
¶
Class for a custom QTextBrowser for showing the logs and tool output.
- author
Savolainen (VTT)
- date
6.2.2018
Module Contents¶
Classes¶
|
|
Custom QTextBrowser class. |
|
Custom QTextBrowser class. |
- class spinetoolbox.widgets.custom_qtextbrowser.SignedTextDocument(owner=None)[source]¶
Bases:
PySide2.QtGui.QTextDocument
- Parameters
owner (ProjectItem, optional) – The item that owns the document.
- class spinetoolbox.widgets.custom_qtextbrowser.CustomQTextBrowser(parent)[source]¶
Bases:
PySide2.QtWidgets.QTextBrowser
Custom QTextBrowser class.
- Parameters
parent (QWidget) – Parent widget
- set_override_document(self, document)[source]¶
Sets the given document as the current document.
- Parameters
document (QTextDocument) –
- append(self, text)[source]¶
Appends new text block to the end of the original document.
If the document contains more text blocks after the addition than a set limit, blocks are deleted at the start of the contents.
- Parameters
text (str) – text to add
- class spinetoolbox.widgets.custom_qtextbrowser.MonoSpaceFontTextBrowser(parent)[source]¶
Bases:
CustomQTextBrowser
Custom QTextBrowser class.
- Parameters
parent (QWidget) – Parent widget