spinetoolbox.widgets.custom_qtextbrowser
Class for a custom QTextBrowser for showing the logs and tool output.
Module Contents
Classes
Custom QTextBrowser class. |
|
Custom QTextBrowser class. |
- class spinetoolbox.widgets.custom_qtextbrowser.CustomQTextBrowser(parent)[source]
Bases:
PySide6.QtWidgets.QTextBrowser
Custom QTextBrowser class.
- Parameters
parent (QWidget) – Parent widget
- append(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
- contextMenuEvent(event)[source]
Reimplemented method to add a clear action into the default context menu.
- Parameters
event (QContextMenuEvent) – Received event
- make_log_entry_point(timestamp)[source]
Creates cursors (log entry points) for given items in event log.
- Parameters
timestamp (str) – time stamp
- class spinetoolbox.widgets.custom_qtextbrowser.MonoSpaceFontTextBrowser(parent)[source]
Bases:
CustomQTextBrowser
Custom QTextBrowser class.
- Parameters
parent (QWidget) – Parent widget