- in verbose log made the messages in Tcl Shell to be displayed in gray color and to include the date

This commit is contained in:
Marius Stanciu
2020-12-20 21:58:31 +02:00
committed by Marius
parent a344dd4367
commit 73f5350f66
3 changed files with 38 additions and 6 deletions

View File

@@ -149,8 +149,12 @@ class TermWidget(QWidget):
elif style.lower() == 'raw':
text = text
else:
# without span <br/> is ignored!!!
text = '<span>%s</span>' % text
if text.startswith('[log]'):
text = text.replace('[log]', '', 1)
text = '<span style="color: gray;">%s</span>' % text
else:
# without span <br/> is ignored!!!
text = '<span>%s</span>' % text
scrollbar = self._browser.verticalScrollBar()
old_value = scrollbar.value()
@@ -213,6 +217,12 @@ class TermWidget(QWidget):
def add_line_break_to_input(self):
self._edit.textCursor().insertText('\n')
def append_input(self, text):
"""
Append text to output widget in bolded style
"""
self._append_to_browser('in', text)
def append_output(self, text):
"""
Append text to output widget