loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.20502732105552912","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IFB5U2ltcGxlR1VJV2ViIGFzIHNnICAgICAgCiAgCnByaW50KCdTdGFydGluZyB1cC4uLicpICAKIyBWZXJ5IGJhc2ljIHdpbmRvdy4gIFJldHVybiB2YWx1ZXMgYXMgYSBkaWN0aW9uYXJ5ICAgICAgCgpsYXlvdXQgPSBbICAgICAgCiAgICAgICAgICBbc2cuVGV4dCgnUGxlYXNlIGVudGVyIHlvdXIgTmFtZSwgQWRkcmVzcywgUGhvbmUnKV0sICAgICAgCiAgICAgICAgICBbc2cuVGV4dCgnTmFtZScsIHNpemU9KDE1LCAxKSksIHNnLklucHV0VGV4dCgnbmFtZScsIGtleT0nX05BTUVfJyldLCAgICAgIAogICAgICAgICAgW3NnLlRleHQoJ0FkZHJlc3MnLCBzaXplPSgxNSwgMSkpLCBzZy5JbnB1dFRleHQoJ2FkZHJlc3MnLCBrZXk9J19BRERSRVNTXycpXSwgICAgICAKICAgICAgICAgIFtzZy5UZXh0KCdQaG9uZScsIHNpemU9KDE1LCAxKSksIHNnLklucHV0VGV4dCgncGhvbmUnLCBrZXk9J19QSE9ORV8nKV0sICAgICAgCiAgICAgICAgICBbc2cuU3VibWl0KCksIHNnLkNhbmNlbCgpXSAgICAgIAogICAgICAgICAgXSAgICAgIAoKd2luZG93ID0gc2cuV2luZG93KCdTaW1wbGUgZGF0YSBlbnRyeSBHVUknLCBsYXlvdXQpCiAgCmV2ZW50LCB2YWx1ZXMgPSB3aW5kb3cuUmVhZCgpICAKCnByaW50KGV2ZW50LCB2YWx1ZXNbJ19OQU1FXyddLCB2YWx1ZXNbJ19BRERSRVNTXyddLCB2YWx1ZXNbJ19QSE9ORV8nXSkgICAgCnByaW50KCd2YWx1ZXMgZGljdGlvbmFyeSA9ICcsIHZhbHVlcykKd2luZG93LkNsb3NlKCk="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import PySimpleGUIWeb as sg      
  
print('Starting up...')  
# Very basic window.  Return values as a dictionary      

layout = [      
          [sg.Text('Please enter your Name, Address, Phone')],      
          [sg.Text('Name', size=(15, 1)), sg.InputText('name', key='_NAME_')],      
          [sg.Text('Address', size=(15, 1)), sg.InputText('address', key='_ADDRESS_')],      
          [sg.Text('Phone', size=(15, 1)), sg.InputText('phone', key='_PHONE_')],      
          [sg.Submit(), sg.Cancel()]      
          ]      

window = sg.Window('Simple data entry GUI', layout)
  
event, values = window.Read()  

print(event, values['_NAME_'], values['_ADDRESS_'], values['_PHONE_'])    
print('values dictionary = ', values)
window.Close()