Super Simple Demo initial checkin

This commit is contained in:
MikeTheWatchGuy 2018-08-05 23:17:42 -04:00
parent 31a8537709
commit 41561e8d54
1 changed files with 13 additions and 0 deletions

13
Demo_Super_Simple_Form.py Normal file
View File

@ -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)