Fixed strings formatting for master plugin
This commit is contained in:
parent
067b13c862
commit
e0db3556d0
@ -211,7 +211,8 @@ class QtWrapper:
|
|||||||
cursor = self.widget.logsBrowser.textCursor()
|
cursor = self.widget.logsBrowser.textCursor()
|
||||||
cursor.movePosition(QTextCursor.End)
|
cursor.movePosition(QTextCursor.End)
|
||||||
self.widget.logsBrowser.setTextCursor(cursor)
|
self.widget.logsBrowser.setTextCursor(cursor)
|
||||||
self.widget.logsBrowser.insertHtml('<font color="black">' + str(time) + '. ' + info_text + '</font><br>')
|
# self.widget.logsBrowser.insertHtml('<font color="black">' + str(time) + '. ' + info_text + '</font><br>')
|
||||||
|
self.widget.logsBrowser.insertHtml('<font color="black"> {0} {1}</font><br>'.format(time,info_text))
|
||||||
self.scroll_to_bottom()
|
self.scroll_to_bottom()
|
||||||
|
|
||||||
def log_warning(self,warning_text):
|
def log_warning(self,warning_text):
|
||||||
@ -221,7 +222,7 @@ class QtWrapper:
|
|||||||
cursor.movePosition(QTextCursor.End)
|
cursor.movePosition(QTextCursor.End)
|
||||||
self.widget.logsBrowser.setTextCursor(cursor)
|
self.widget.logsBrowser.setTextCursor(cursor)
|
||||||
self.widget.logsBrowser.textCursor().movePosition(QTextCursor.End)
|
self.widget.logsBrowser.textCursor().movePosition(QTextCursor.End)
|
||||||
self.widget.logsBrowser.insertHtml('<font color="orange">' + str(time) + '. ' + warning_text + '</font><br> ')
|
self.widget.logsBrowser.insertHtml('<font color="orange"> {0} {1}</font><br>'.format(time,warning_text))
|
||||||
self.scroll_to_bottom()
|
self.scroll_to_bottom()
|
||||||
|
|
||||||
def log_error(self,error_text):
|
def log_error(self,error_text):
|
||||||
@ -231,7 +232,7 @@ class QtWrapper:
|
|||||||
cursor.movePosition(QTextCursor.End)
|
cursor.movePosition(QTextCursor.End)
|
||||||
self.widget.logsBrowser.setTextCursor(cursor)
|
self.widget.logsBrowser.setTextCursor(cursor)
|
||||||
self.widget.logsBrowser.textCursor().movePosition(QTextCursor.End)
|
self.widget.logsBrowser.textCursor().movePosition(QTextCursor.End)
|
||||||
self.widget.logsBrowser.insertHtml('<font color="red">' + str(time) + '. ' + error_text + '</font><br>')
|
self.widget.logsBrowser.insertHtml('<font color="red"> {0} {1}</font><br>'.format(time,error_text))
|
||||||
self.scroll_to_bottom()
|
self.scroll_to_bottom()
|
||||||
|
|
||||||
def scroll_to_bottom(self):
|
def scroll_to_bottom(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user