From a881cd2bccac1b9391e5cf3c78c0838ab1190a19 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Fri, 9 Aug 2019 00:34:27 +0300 Subject: [PATCH] Work around wx bug - show labels even after switching graphs --- graphs/gui/panel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphs/gui/panel.py b/graphs/gui/panel.py index b12baa2da..b4ca47176 100644 --- a/graphs/gui/panel.py +++ b/graphs/gui/panel.py @@ -147,16 +147,16 @@ class GraphControlPanel(wx.Panel): # Vectors self._setVectorDefaults() if view.srcVectorDef is not None: - self.srcVectorLabel.SetLabel(view.srcVectorDef.label) self.srcVector.Show(True) self.srcVectorLabel.Show(True) + self.srcVectorLabel.SetLabel(view.srcVectorDef.label) else: self.srcVector.Show(False) self.srcVectorLabel.Show(False) if view.tgtVectorDef is not None: - self.tgtVectorLabel.SetLabel(view.tgtVectorDef.label) self.tgtVector.Show(True) self.tgtVectorLabel.Show(True) + self.tgtVectorLabel.SetLabel(view.tgtVectorDef.label) else: self.tgtVector.Show(False) self.tgtVectorLabel.Show(False)