@amasad/

PySimpleGUI

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.5966219261636392","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IFB5U2ltcGxlR1VJV2ViIGFzIHNnCgp3aW5kb3cgPSBzZy5XaW5kb3coJ2hlbGxvIHdvcmxkJykuTGF5b3V0KFsKICBbc2cuVGV4dCgnaGVsbG8gd29ybGQnKV0sCiAgW3NnLklucHV0VGV4dCgnZW50ZXIgbmFtZScpXSwKICBbc2cuU3VibWl0KCksIHNnLkNhbmNlbCgpXQpdKQoKW2J1dHRvbiwgW25hbWVdXSA9IHdpbmRvdy5SZWFkKCkKCmlmIGJ1dHRvbiA9PSAnU3VibWl0JzoKICBwcmludCgnSGVsbG8gJyArIG5hbWUp"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
import PySimpleGUIWeb as sg

window = sg.Window('hello world').Layout([
  [sg.Text('hello world')],
  [sg.InputText('enter name')],
  [sg.Submit(), sg.Cancel()]
])

[button, [name]] = window.Read()

if button == 'Submit':
  print('Hello ' + name)