Python Forum
[PySimpleGUI] Tutorial - Name, Address, Phone GUI
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PySimpleGUI] Tutorial - Name, Address, Phone GUI
#6
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()]])
Reply


Messages In This Thread
RE: [PySimpleGUI] Tutorial - Name, Address, Phone GUI - by PySimpleGUI - Aug-04-2018, 12:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PySimpleGUI Try Except jamesaarr 1 1,977 Nov-18-2021, 02:02 PM
Last Post: jamesaarr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020