loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.590796993405541","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IFB5U2ltcGxlR1VJV2ViIGFzIHNnICAgICAgCnByaW50KCdTdGFydGluZyB1cC4uLicpICAgICAgCgpsYXlvdXQgPSBbW3NnLlRleHQoJ1BlcnNpc3RlbnQgd2luZG93JyldLCAgICAgIAogICAgICAgICAgW3NnLklucHV0KGRvX25vdF9jbGVhcj1UcnVlKV0sICAgICAgCiAgICAgICAgICBbc2cuQnV0dG9uKCdSZWFkJyksIHNnLkV4aXQoKV1dICAgICAgCiAgICAgIAp3aW5kb3cgPSBzZy5XaW5kb3coJ1dpbmRvdyB0aGF0IHN0YXlzIG9wZW4nLCBsYXlvdXQpCiAgICAgIAp3aGlsZSBUcnVlOiAgICAgIAogICAgZXZlbnQsIHZhbHVlcyA9IHdpbmRvdy5SZWFkKCkgICAgICAKICAgIGlmIGV2ZW50IGlzIE5vbmUgb3IgZXZlbnQgPT0gJ0V4aXQnOiAgICAgIAogICAgICAgIGJyZWFrICAgICAgCiAgICBwcmludChldmVudCwgdmFsdWVzKSAgICAKCndpbmRvdy5DbG9zZSgp"},"asBuffer":null},"loaded":true}}
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)
      
while True:      
    event, values = window.Read()      
    if event is None or event == 'Exit':      
        break      
    print(event, values)    

window.Close()