loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.1470518841558328","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IFB5U2ltcGxlR1VJV2ViIGFzIHNnICAKICAKcHJpbnQoJ1N0YXJ0dXAgdXAuLi4nKSAgCgpsYXlvdXQgPSBbW3NnLlRleHQoJ1NsaWRlciBEZW1vbnN0cmF0aW9uJyksIHNnLlRleHQoJycsIGtleT0nX09VVFBVVF8nKV0sICAKICAgICAgICAgICAgW3NnLlQoJzAnLGtleT0nX0xFRlRfJyksICAKICAgICAgICAgICAgIHNnLlNsaWRlcigoMSwxMDApLCBrZXk9J19TTElERVJfJywgb3JpZW50YXRpb249J2gnLCBlbmFibGVfZXZlbnRzPVRydWUpLCAgCiAgICAgICAgICAgICBzZy5UKCcwJywga2V5PSdfUklHSFRfJyldLCAgCiAgICAgICAgICAgIFtzZy5CdXR0b24oJ1Nob3cnKSwgc2cuQnV0dG9uKCdFeGl0JyldXSAgCiAgCndpbmRvdyA9IHNnLldpbmRvdygnV2luZG93IFRpdGxlJywgbGF5b3V0KQogIAp3aGlsZSBUcnVlOiAgICAgICAgICAgICAjIEV2ZW50IExvb3AgIAogIGV2ZW50LCB2YWx1ZXMgPSB3aW5kb3cuUmVhZCgpICAKICBwcmludChldmVudCwgdmFsdWVzKSAgCiAgaWYgZXZlbnQgaXMgTm9uZSBvciBldmVudCA9PSAnRXhpdCc6ICAKICAgICAgYnJlYWsgIAogIHdpbmRvdy5FbGVtZW50KCdfTEVGVF8nKS5VcGRhdGUodmFsdWVzWydfU0xJREVSXyddKSAgCiAgd2luZG93LkVsZW1lbnQoJ19SSUdIVF8nKS5VcGRhdGUodmFsdWVzWydfU0xJREVSXyddKSAgCiAgCndpbmRvdy5DbG9zZSgp"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import PySimpleGUIWeb as sg  
  
print('Startup up...')  

layout = [[sg.Text('Slider Demonstration'), sg.Text('', key='_OUTPUT_')],  
            [sg.T('0',key='_LEFT_'),  
             sg.Slider((1,100), key='_SLIDER_', orientation='h', enable_events=True),  
             sg.T('0', key='_RIGHT_')],  
            [sg.Button('Show'), sg.Button('Exit')]]  
  
window = sg.Window('Window Title', layout)
  
while True:             # Event Loop  
  event, values = window.Read()  
  print(event, values)  
  if event is None or event == 'Exit':  
      break  
  window.Element('_LEFT_').Update(values['_SLIDER_'])  
  window.Element('_RIGHT_').Update(values['_SLIDER_'])  
  
window.Close()