Warnings added to help people when they missed calling Finalize

This commit is contained in:
MikeTheWatchGuy 2018-09-26 23:06:06 -04:00
parent 9c59d86d1c
commit 4208d9d569
2 changed files with 41 additions and 1 deletions

View file

@ -5,7 +5,7 @@ layout = [
[sg.T('Change circle color to:'), sg.ReadButton('Red'), sg.ReadButton('Blue'), sg.ReadButton('Move')]
]
window = sg.Window('Graph test').Layout(layout)
window = sg.Window('Graph test').Layout(layout).Finalize()
graph = window.FindElement('graph')
circle = graph.DrawCircle((75,75), 25, fill_color='black',line_color='white')