pybitmessage.bitmessageqt.messageview module¶
Custom message viewer with support for switching between HTML and plain text rendering, HTML sanitization, lazy rendering (as you scroll down), zoom and URL click warning popup
-
class
MessageView
(parent=0)[source]¶ Bases:
sphinx.ext.autodoc.importer._MockObject
Message content viewer class, can switch between plaintext and HTML
-
MODE_PLAIN
= 0¶
-
MODE_HTML
= 1¶
-
resizeEvent
(event)¶ View resize event handler
-
mousePressEvent
(event)¶ Mouse press button event handler
-
wheelEvent
(event)¶ Mouse wheel scroll event handler
-
setWrappingWidth
(width=None)¶ Set word-wrapping width
-
confirmURL
(link)¶ Show a dialog requesting URL opening confirmation
-
loadResource
(restype, name)¶ Callback for loading referenced objects, such as an image. For security reasons at the moment doesn’t do anything)
-
lazyRender
()¶ Partially render a message. This is to avoid UI freezing when loading huge messages. It continues loading as you scroll down.
-
showPlain
()¶ Render message as plain text.
-
showHTML
()¶ Render message as HTML
-
setContent
(data)¶ Set message content from argument
-