From 6f02fb4a54950c050134cc1e97cd1fb8e0a75c70 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Thu, 19 Sep 2019 11:57:11 -0400 Subject: [PATCH] Updated, removed the force_toplevel in Window as it doesn't seem to be needed anymore. --- DemoPrograms/Demo_Matplotlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DemoPrograms/Demo_Matplotlib.py b/DemoPrograms/Demo_Matplotlib.py index 73363a98..8c503f66 100644 --- a/DemoPrograms/Demo_Matplotlib.py +++ b/DemoPrograms/Demo_Matplotlib.py @@ -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)