MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / showPlain

Method showPlain

src/bitmessageqt/messageview.py:112–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110 self.rendering = False
111
112 def showPlain(self):
113 self.mode = MessageView.MODE_PLAIN
114 out = self.html.raw
115 if self.html.has_html:
116 out = "<div align=\"center\" style=\"text-decoration: underline;\"><b>" + unicode(QtGui.QApplication.translate("MessageView", "HTML detected, click here to display")) + "</b></div><br/>" + out
117 self.out = out
118 self.outpos = 0
119 self.setHtml("")
120 self.lazyRender()
121
122 def showHTML(self):
123 self.mode = MessageView.MODE_HTML

Callers 2

mousePressEventMethod · 0.95
setContentMethod · 0.95

Calls 1

lazyRenderMethod · 0.95

Tested by

no test coverage detected