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

print('starting up...') # Seems to help repl.it

layout = [[sg.Text('My one-shot window.')],      
          [sg.InputText()],      
          [sg.Submit(), sg.Cancel()]]      
      
window = sg.Window('Window Title').Layout(layout)    
    
event, values = window.Read()    

window.Close()

print('text input was', values[0], 'button pressed was', event)