loading
open in
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import PySimpleGUIWeb as sg      
print('Starting up...')      

layout = [[sg.Text('Persistent window')],      
          [sg.Input(do_not_clear=True)],      
          [sg.Button('Read'), sg.Exit()]]      
      
window = sg.Window('Window that stays open').Layout(layout)      
      
while True:      
    event, values = window.Read()      
    if event is None or event == 'Exit':      
        break      
    print(event, values)    

window.Close()