Major demo refresh.. switched everything to new function names, new design patterns
Out with the old, in with the new!!
This commit is contained in:
parent
2a06683383
commit
a1f4c60271
68 changed files with 706 additions and 1863 deletions
|
@ -1,14 +1,18 @@
|
|||
import PySimpleGUI as sg
|
||||
|
||||
form = sg.FlexForm('Simple data entry form')
|
||||
"""
|
||||
Simple Form showing how to use keys on your input fields
|
||||
"""
|
||||
|
||||
layout = [
|
||||
[sg.Text('Please enter your Name, Address, Phone')],
|
||||
[sg.Text('Name', size=(15, 1)), sg.InputText('1', key='name')],
|
||||
[sg.Text('Address', size=(15, 1)), sg.InputText('2', key='address')],
|
||||
[sg.Text('Phone', size=(15, 1)), sg.InputText('3', key='phone')],
|
||||
[sg.Submit(), sg.Cancel()]
|
||||
]
|
||||
]
|
||||
|
||||
button, values = form.LayoutAndRead(layout)
|
||||
window = sg.Window('Simple Data Entry Window').Layout(layout)
|
||||
button, values = window.Read()
|
||||
|
||||
sg.Popup(button, values, values['name'], values['address'], values['phone'])
|
Loading…
Add table
Add a link
Reference in a new issue