From 8d868523ecb90ad0bbf9c8dbe4a3cf0579c031dd Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Thu, 30 Jan 2020 10:13:23 -0500 Subject: [PATCH] Multiline.update - move cursor to end if appending new data. This is the same as an "autoscroll". --- PySimpleGUIQt/PySimpleGUIQt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index 0492fb6d..fecd894c 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "0.31.0.3 Unreleased - fix for Listbox.update, Graph.change_coordinates, Added Image.Widget, return correct value with ComboBox has manual data entry, added print_to_element" +version = __version__ = "0.31.0.4 Unreleased - fix for Listbox.update, Graph.change_coordinates, Added Image.Widget, return correct value with ComboBox has manual data entry, added print_to_element, multlineline update moves cursor to end" port = 'PySimpleGUIQt' @@ -1026,6 +1026,7 @@ 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 text_color_for_value is not None: self.QT_TextEdit.setTextColor(self.TextColor) if background_color_for_value is not None: