- the status bar messages that are echoed in the Tcl Shell will no longer have all text colored but only the identifier

This commit is contained in:
Marius Stanciu
2020-04-24 06:59:49 +03:00
committed by Marius
parent b569fa1748
commit 26dd29e7dd
4 changed files with 26 additions and 9 deletions

View File

@@ -2588,9 +2588,13 @@ class _BrowserTextEdit(QTextEdit):
def clear(self):
QTextEdit.clear(self)
text = "FlatCAM %s - Type >help< to get started\n\n" % self.version
text = "!FlatCAM %s? - %s" % (self.version, _("Type >help< to get started"))
text = html.escape(text)
text = text.replace('\n', '<br/>')
# hack so I can make text bold because the escape method will replace the '<' and '>' signs with html code
text = text.replace('!', '<b>')
text = text.replace('?', '</b>')
text += '<br><br>'
self.moveCursor(QTextCursor.End)
self.insertHtml(text)