loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.40148274850457843","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IFB5U2ltcGxlR1VJV2ViIGFzIHNnICAgICAgCgpwcmludCgnc3RhcnRpbmcgdXAuLi4nKSAjIFNlZW1zIHRvIGhlbHAgcmVwbC5pdAoKbGF5b3V0ID0gW1tzZy5UZXh0KCdNeSBvbmUtc2hvdCB3aW5kb3cuJyldLCAgICAgIAogICAgICAgICAgW3NnLklucHV0VGV4dCgpXSwgICAgICAKICAgICAgICAgIFtzZy5TdWJtaXQoKSwgc2cuQ2FuY2VsKCldXSAgICAgIAogICAgICAKd2luZG93ID0gc2cuV2luZG93KCdXaW5kb3cgVGl0bGUnLCBsYXlvdXQpCiAgICAKZXZlbnQsIHZhbHVlcyA9IHdpbmRvdy5SZWFkKCkgICAgCgp3aW5kb3cuQ2xvc2UoKQoKcHJpbnQoJ3RleHQgaW5wdXQgd2FzJywgdmFsdWVzWzBdLCAnYnV0dG9uIHByZXNzZWQgd2FzJywgZXZlbnQp"},"asBuffer":null},"loaded":true}}
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)
    
event, values = window.Read()    

window.Close()

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