From af6b1d36c38516ec645e00ec77f7acec5c806447 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Tue, 7 Jul 2020 14:41:30 -0400 Subject: [PATCH] Argument order change --- PySimpleGUIWeb/Demo Programs/Web_Matplotlib_Simple.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PySimpleGUIWeb/Demo Programs/Web_Matplotlib_Simple.py b/PySimpleGUIWeb/Demo Programs/Web_Matplotlib_Simple.py index adcda9db..88b4cca9 100644 --- a/PySimpleGUIWeb/Demo Programs/Web_Matplotlib_Simple.py +++ b/PySimpleGUIWeb/Demo Programs/Web_Matplotlib_Simple.py @@ -15,12 +15,12 @@ def create_figure(): return fig -def draw_figure(fig, element): +def draw_figure(element, fig): """ Draws the previously created "figure" in the supplied Image Element - :param fig: a Matplotlib figure :param element: an Image Element + :param fig: a Matplotlib figure :return: The figure canvas """ @@ -50,7 +50,7 @@ def main(): if event == 'Exit' or event == sg.WIN_CLOSED: break if event == 'Draw': - draw_figure(create_figure(), window['-IMAGE-']) + draw_figure(window['-IMAGE-'], create_figure()) window.close()