Removed last of Context Manager from Popups. Added Underscore to Menu Examples, Updated Templates, Better Popup examples

This commit is contained in:
MikeTheWatchGuy 2018-09-29 13:48:48 -04:00
parent 96635ef5a2
commit d1773e6447
5 changed files with 55 additions and 46 deletions

View file

@ -10,7 +10,8 @@ if sys.version_info[0] >= 3:
else:
import PySimpleGUI27 as sg
layout = [[ sg.Text('My layout') ]]
layout = [[ sg.Text('My layout') ],
[ sg.Button('Next Window')]]
window = sg.Window('My window').Layout(layout)
button, value = window.Read()
@ -26,11 +27,13 @@ if sys.version_info[0] >= 3:
else:
import PySimpleGUI27 as sg
layout = [[ sg.Text('My layout') ]]
layout = [[ sg.Text('My layout') ],
[ sg.RButton('Read The Window')]]
window = sg.Window('My new window').Layout(layout)
while True: # Event Loop
button, value = window.Read()
if button is None:
break
break
print(button, value)