From e5dd64ad5707e83c5c52b1bd10a968278642ea3b Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Thu, 30 Jan 2020 10:18:08 -0500 Subject: [PATCH] Checked for autoscroll --- PySimpleGUIQt/PySimpleGUIQt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index fecd894c..ba1828af 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -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: