Merge pull request #1989 from PySimpleGUI/Dev-latest

cleanup to more recent constructs
This commit is contained in:
PySimpleGUI 2019-09-18 20:16:04 -04:00 committed by GitHub
commit ec1380f5a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -93,9 +93,9 @@ layout = [[sg.Text('Plot test', font='Any 18')],
[sg.OK(pad=((figure_w / 2, 0), 3), size=(4, 2))]]
# create the form and show it without the plot
window = sg.Window('Demo Application - Embedding Matplotlib In PySimpleGUI', force_toplevel=True).Layout(layout).Finalize()
window = sg.Window('Demo Application - Embedding Matplotlib In PySimpleGUI', layout, force_toplevel=True, finalize=True)
# add the plot to the window
fig_photo = draw_figure(window.FindElement('canvas').TKCanvas, fig)
fig_photo = draw_figure(window['canvas'].TKCanvas, fig)
event, values = window.Read()
event, values = window.read()