Super Simple Demo initial checkin
This commit is contained in:
parent
31a8537709
commit
41561e8d54
|
@ -0,0 +1,13 @@
|
||||||
|
import PySimpleGUI as sg
|
||||||
|
|
||||||
|
form = sg.FlexForm('Simple data entry form') # begin with a blank form
|
||||||
|
|
||||||
|
layout = [[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()]]
|
||||||
|
|
||||||
|
button, (name, address, phone) = form.LayoutAndRead(layout)
|
||||||
|
|
||||||
|
print(name, address, phone)
|
Loading…
Reference in New Issue