From 4f9a0d97faf8d0f56fec0d7df1d1d2e31da583fb Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Fri, 8 Nov 2019 13:33:29 -0500 Subject: [PATCH] Fixed up naming --- DemoPrograms/Demo_Matplotlib_Two_Windows.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DemoPrograms/Demo_Matplotlib_Two_Windows.py b/DemoPrograms/Demo_Matplotlib_Two_Windows.py index 799723e5..31a23972 100644 --- a/DemoPrograms/Demo_Matplotlib_Two_Windows.py +++ b/DemoPrograms/Demo_Matplotlib_Two_Windows.py @@ -10,10 +10,10 @@ import matplotlib.pyplot as plt layout = [[sg.Button('Plot'), sg.Cancel(), sg.Button('Popup')]] -main_window = sg.Window('Have some Matplotlib....', layout) +window = sg.Window('Have some Matplotlib....', layout) while True: - event, values = main_window.Read() + event, values = window.read() if event in (None, 'Cancel'): break elif event == 'Plot': @@ -22,4 +22,4 @@ while True: plt.show(block=False) elif event == 'Popup': sg.popup('Yes, your application is still running') -main_window.close() +window.close()