Skip to content

Commit

Permalink
simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
lindakladivova committed Nov 10, 2023
1 parent 61c2963 commit e46dfcb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gui/wxpython/gui_core/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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"""
Expand Down

0 comments on commit e46dfcb

Please sign in to comment.