Call Finalize

This commit is contained in:
MikeTheWatchGuy 2018-09-14 12:18:45 -04:00
parent 21bbb7fca8
commit 3c57788f77

View file

@ -130,7 +130,7 @@ def pong():
# ------------- Create window -------------
form = sg.FlexForm('Canvas test', return_keyboard_events=True)
form.Layout(layout)
form.ReadNonBlocking() # TODO Replace with call to form.Finalize once code released
form.Finalize() # TODO Replace with call to form.Finalize once code released
# ------------- Get the tkinter Canvas we're drawing on -------------
canvas = form.FindElement('canvas').TKCanvas