Python Forum
[PySimpleGUI] New input replacing default value in InputText Element - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [PySimpleGUI] New input replacing default value in InputText Element (/thread-22526.html)



[PySimpleGUI] New input replacing default value in InputText Element - skratt - Nov-16-2019

Hi,I need a quick help.

I wasn't able to find a way to have the default value of my InputText Element to be replaced by any new characters typed by the user. Huh

Focus on this element is just bringing the cursor at the begining of the InputText and lead the new characters to be added before the default value, without removing it
[sg.InputText(default_text="{}x{}x{}".format(zmax,xmax,ymax),focus=True)]
Am I missing something?
Is there a specific option that I didn't saw ?

I have lived with it so far, but now I am forced to use the procedure repeatedly, so it become very frustrating.

Please help meeee ! Wall Wall Wall


RE: [PySimpleGUI] New input replacing default value in InputText Element - FullOfHelp - Nov-16-2019

You may find support by posing an Issue on the GitHub as suggested by the documentation. The GitHub is located at http://www.PySimpleGUI.com. File an issue rather than becoming frustrated.