Updated, removed the force_toplevel in Window as it doesn't seem to be needed anymore.

This commit is contained in:
PySimpleGUI 2019-09-19 11:57:11 -04:00
parent ec78bd3327
commit 6f02fb4a54
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ Basic steps are:
* Display form (BLOCKING)
Based on information from: https://matplotlib.org/3.1.0/gallery/user_interfaces/embedding_in_tk_sgskip.html
(Thank you dirck)
(Thank you Em-Bo & dirck)
"""
@ -93,7 +93,7 @@ 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', layout, force_toplevel=True, finalize=True)
window = sg.Window('Demo Application - Embedding Matplotlib In PySimpleGUI', layout, finalize=True)
# add the plot to the window
fig_photo = draw_figure(window['canvas'].TKCanvas, fig)