From e46dfcb9073605e0dec831eaeb91767015401fdd Mon Sep 17 00:00:00 2001 From: lindakladivova Date: Fri, 10 Nov 2023 16:32:26 +0100 Subject: [PATCH] simplification --- gui/wxpython/gui_core/menu.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gui/wxpython/gui_core/menu.py b/gui/wxpython/gui_core/menu.py index fe5867ac0e3..6f3eb57534f 100644 --- a/gui/wxpython/gui_core/menu.py +++ b/gui/wxpython/gui_core/menu.py @@ -331,10 +331,8 @@ def _layout(self): self._tree, proportion=1, flag=wx.EXPAND | wx.LEFT | wx.RIGHT, border=5 ) + self.SetSizerAndFit(sizer) self.SetAutoLayout(True) - self.SetSizer(sizer) - self.FitInside() - self.Layout() def _createTree(self): @@ -354,7 +352,6 @@ def _updateHistoryModel(self): """Update the model and refresh the tree""" self._model.CreateModel() self._tree.SetModel(self._model.GetModel()) - self.Layout() def OnItemSelected(self, node): """Item selected"""