Fixed flicker problem!!! Updated all of the PySimpleGUIWeb demos
This commit is contained in:
parent
f0e1642437
commit
a2443c63ad
14 changed files with 413 additions and 298 deletions
|
@ -1,26 +1,28 @@
|
|||
import PySimpleGUIWeb as sg
|
||||
|
||||
# Basic example of PSGWeb
|
||||
|
||||
def main():
|
||||
layout = [
|
||||
[sg.Text('This is a text element')],
|
||||
[sg.Input()],
|
||||
[sg.Combo(['Combo 1'])],
|
||||
[sg.Text('If you close the browser tab, the app will exit gracefully')],
|
||||
[sg.InputText('Source', do_not_clear=True)],
|
||||
[sg.InputText('Dest', do_not_clear=True)],
|
||||
[sg.Ok(), sg.Cancel()]
|
||||
]
|
||||
[sg.Text('This is a text element')],
|
||||
[sg.Input()],
|
||||
[sg.Combo(['Combo 1'])],
|
||||
[sg.Text('If you close the browser tab, the app will exit gracefully')],
|
||||
[sg.InputText('Source')],
|
||||
[sg.InputText('Dest')],
|
||||
[sg.Ok(), sg.Cancel()]
|
||||
]
|
||||
|
||||
window = sg.Window('Demo window..').Layout(layout)
|
||||
window = sg.Window('Demo window..', layout)
|
||||
i = 0
|
||||
while True:
|
||||
event, values = window.Read(timeout=1)
|
||||
event, values = window.read(timeout=1)
|
||||
if event != sg.TIMEOUT_KEY:
|
||||
print(event, values)
|
||||
if event is None:
|
||||
break
|
||||
i += 1
|
||||
window.Close()
|
||||
window.close()
|
||||
|
||||
main()
|
||||
print('Program terminating normally')
|
||||
print('Program terminating normally')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue