From a55084dbaebb45c85e61901d0a21dfd87388f99a Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Fri, 2 Aug 2019 16:51:45 +0300 Subject: [PATCH] Do not flicker when switching graphs on Windows --- gui/graphFrame/panel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/graphFrame/panel.py b/gui/graphFrame/panel.py index 8c1067928..dee3d87b3 100644 --- a/gui/graphFrame/panel.py +++ b/gui/graphFrame/panel.py @@ -129,6 +129,8 @@ class GraphControlPanel(wx.Panel): self._setVectorDefaults() def updateControls(self, layout=True): + if layout: + self.Freeze() self._clearStoredValues() view = self.graphFrame.getView() self.ySubSelection.Clear() @@ -173,6 +175,7 @@ class GraphControlPanel(wx.Panel): if layout: self.graphFrame.Layout() self.graphFrame.UpdateWindowSize() + self.Thaw() def _updateInputs(self, storeInputs=True): if storeInputs: