loading
open in
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import PySimpleGUIWeb as sg      

print('Startup up...')
# Very basic window.  Return values as a list      

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()]      
        ]      
window = sg.Window('Simple data entry window').Layout(layout)   
event, values = window.Read()   
print(event, values[0], values[1], values[2])  

window.Close()