From 41561e8d54532f5ce6f4430e0499204fc4519345 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Sun, 5 Aug 2018 23:17:42 -0400 Subject: [PATCH] Super Simple Demo initial checkin --- Demo_Super_Simple_Form.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Demo_Super_Simple_Form.py diff --git a/Demo_Super_Simple_Form.py b/Demo_Super_Simple_Form.py new file mode 100644 index 00000000..0d13708e --- /dev/null +++ b/Demo_Super_Simple_Form.py @@ -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) \ No newline at end of file