From 1d81aac839873fc8f3cfd84efe94333cb097ab24 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Tue, 14 Apr 2020 15:39:25 -0400 Subject: [PATCH] Fix for Graph element. Struggled after adding the new SvgSubcontainer widget --- PySimpleGUIWeb/PySimpleGUIWeb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PySimpleGUIWeb/PySimpleGUIWeb.py b/PySimpleGUIWeb/PySimpleGUIWeb.py index 424a729a..9e9ba27d 100644 --- a/PySimpleGUIWeb/PySimpleGUIWeb.py +++ b/PySimpleGUIWeb/PySimpleGUIWeb.py @@ -1,6 +1,6 @@ #usr/bin/python3 -version = __version__ = "0.36.3 Unreleased Fix for MultilineOutput not autoscrolling, image update flicker fix, print sep char fixed, fix for extra Tab, replaced SvgGroup with SvgSubcontainer" +version = __version__ = "0.36.4 Unreleased Fix for MultilineOutput not autoscrolling, image update flicker fix, print sep char fixed, fix for extra Tab, replaced SvgGroup with SvgSubcontainer, fixed Graph element (Thanks Davide from Remi!)" port = 'PySimpleGUIWeb' @@ -1757,7 +1757,7 @@ class Graph(Element): print('Call Window.Finalize() prior to this operation') return None self.Widget.empty() - self.SvgGroup = remi.gui.SvgSubcontainer(self.Size[1],0) + self.SvgGroup = remi.gui.SvgSubcontainer(0, 0, "100%", "100%") self.Widget.append(self.SvgGroup) def Update(self, background_color): @@ -4670,7 +4670,7 @@ def PackFormIntoFrame(form, containing_frame, toplevel_form): elif element_type == ELEM_TYPE_GRAPH: element = element # type: Graph element.Widget = remi.gui.Svg(width=element.CanvasSize[0], height=element.CanvasSize[1]) - element.SvgGroup = remi.gui.SvgSubcontainer(element.CanvasSize[1],0) + element.SvgGroup = remi.gui.SvgSubcontainer(0,0, "100%", "100%") element.Widget.append([element.SvgGroup,]) do_font_and_color(element.Widget) if element.ChangeSubmits: