Checked for autoscroll

This commit is contained in:
PySimpleGUI 2020-01-30 10:18:08 -05:00
parent 8d868523ec
commit e5dd64ad57
1 changed files with 2 additions and 1 deletions

View File

@ -1026,7 +1026,8 @@ class Multiline(Element):
if background_color_for_value is not None:
self.QT_TextEdit.setTextBackgroundColor(background_color_for_value)
self.QT_TextEdit.insertPlainText(str(value))
self.QT_TextEdit.moveCursor(QtGui.QTextCursor.End)
if self.Autoscroll:
self.QT_TextEdit.moveCursor(QtGui.QTextCursor.End)
if text_color_for_value is not None:
self.QT_TextEdit.setTextColor(self.TextColor)
if background_color_for_value is not None: