Merge pull request #1870 from PySimpleGUI/Dev-latest

Changed Input.Update to move the cursor to the end if updating the va…
This commit is contained in:
PySimpleGUI 2019-08-23 13:58:33 -04:00 committed by GitHub
commit b2d47ac8df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
version = __version__ = "4.3.0 Released PEP8 SDK & Layout Control Version" version = __version__ = "4.4.0.1 Unreleased Version"
# 888888ba .d88888b oo dP .88888. dP dP dP # 888888ba .d88888b oo dP .88888. dP dP dP
@ -836,6 +836,7 @@ class InputText(Element):
except: except:
pass pass
self.DefaultText = value self.DefaultText = value
self.TKEntry.icursor(tk.END)
if select: if select:
self.TKEntry.select_range(0, 'end') self.TKEntry.select_range(0, 'end')
if visible is False: if visible is False:
@ -7417,7 +7418,6 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form):
side = tk.LEFT side = tk.LEFT
row_justify = element.Justification row_justify = element.Justification
element.Widget = element.TKColFrame element.Widget = element.TKColFrame
print(f'Setting Widget = {element.Widget}')
element.TKColFrame.pack(side=side, anchor=anchor, padx=elementpad[0], pady=elementpad[1], expand=True, fill='both') element.TKColFrame.pack(side=side, anchor=anchor, padx=elementpad[0], pady=elementpad[1], expand=True, fill='both')
# element.TKColFrame.pack(side=side, padx=elementpad[0], pady=elementpad[1], expand=True, fill='both') # element.TKColFrame.pack(side=side, padx=elementpad[0], pady=elementpad[1], expand=True, fill='both')
if element.Visible is False: if element.Visible is False: