Major update of all demo programs to use new PEP8 bindings, etc
This commit is contained in:
parent
3f7c87c562
commit
7f52778bcc
307 changed files with 19546 additions and 3297 deletions
|
@ -1,11 +1,15 @@
|
|||
import PySimpleGUI as sg
|
||||
|
||||
layout = [[sg.Text('Please enter your Name, Address, Phone')],
|
||||
[sg.Text('Name', size=(10,1)), sg.InputText(key='-NAME-')],
|
||||
[sg.Text('Address', size=(10,1)), sg.InputText(key='-ADDRESS-')],
|
||||
[sg.Text('Phone', size=(10,1)), sg.InputText(key='-PHONE-')],
|
||||
[sg.Button('Submit'), sg.Button('Cancel')]]
|
||||
# Basic Example
|
||||
|
||||
layout = [[sg.Text('Please enter your Name, Address, Phone')],
|
||||
[sg.Text('Name', size=(10, 1)), sg.InputText(key='-NAME-')],
|
||||
[sg.Text('Address', size=(10, 1)), sg.InputText(key='-ADDRESS-')],
|
||||
[sg.Text('Phone', size=(10, 1)), sg.InputText(key='-PHONE-')],
|
||||
[sg.Button('Submit'), sg.Button('Cancel')]]
|
||||
|
||||
window = sg.Window('Simple Data Entry Window', layout)
|
||||
event, values = window.read()
|
||||
print(event, values['-NAME-'], values['-ADDRESS-'], values['-PHONE-'])
|
||||
|
||||
window.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue