Aug-04-2018, 12:18 AM
WOW... I just realized all that code can be compacted down to a SINGLE LINE of Python code! Not that I would, just saying it's possible. Not sure how many other Python GUIs can do this in 1 line of code. The design is even more Python-like than I thought.
button, (name, address, phone) = sg.FlexForm('Simple data entry form').\ LayoutAndRead([[sg.Text('Please enter your Name, Address, Phone')], [sg.Text('Name', size=(15, 1)), sg.InputText()], [sg.Text('Address', size=(15, 1)), sg.InputText()], [sg.Text('Phone', size=(15, 1)), sg.InputText()], [sg.Submit(), sg.Cancel()]])