loading

This Plugin Crashed!

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

window.Close()