Merge pull request #2554 from PySimpleGUI/Dev-latest

Checked for autoscroll
This commit is contained in:
PySimpleGUI 2020-01-30 10:18:31 -05:00 committed by GitHub
commit 3695584920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: