Skip to content

Commit e01a720

Browse files
committed
Move cursor to end when default text added to Multline
1 parent 501dd59 commit e01a720

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PySimpleGUIQt/PySimpleGUIQt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/python3
2-
version = __version__ = "0.31.0.8 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, scrollable columns, listbox.get, fix for visible ignored in Text Element, Window.read close parm"
2+
version = __version__ = "0.31.0.9 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, scrollable columns, listbox.get, fix for visible ignored in Text Element, Window.read close parm, move cursor to end when default text in Multiline"
33

44
port = 'PySimpleGUIQt'
55

@@ -5146,6 +5146,7 @@ def PackFormIntoFrame(window, containing_frame, toplevel_win):
51465146
toplevel_win.FocusElement = element.QT_TextEdit
51475147

51485148
element.QT_TextEdit.setText(str(default_text))
5149+
element.QT_TextEdit.moveCursor(QtGui.QTextCursor.End)
51495150
if element.Tooltip:
51505151
element.QT_TextEdit.setToolTip(element.Tooltip)
51515152
# qt_row_layout.setContentsMargins(*full_element_pad)

0 commit comments

Comments
 (0)