Skip to content

Commit

Permalink
Fix wrong objects on which SetSizer was set.
Browse files Browse the repository at this point in the history
  • Loading branch information
KOLANICH committed Jan 10, 2023
1 parent b400da4 commit 10cc380
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions PyChem/Cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,9 @@ def _init_selparam_sizers(self):
self.gbsLinkageMethod.AddGrowableCol(0)
self.gbsDistanceMeasure.AddGrowableCol(0)

self.clustType.SetSizer(self.gbsClusterMethod)
self.linkType.SetSizer(self.gbsLinkageMethod)
self.distType.SetSizer(self.gbsDistanceMeasure)
self.methPnl.SetSizer(self.gbsClusterMethod)
self.linkPnl.SetSizer(self.gbsLinkageMethod)
self.distPnl.SetSizer(self.gbsDistanceMeasure)

def _init_selfun_ctrls(self, prnt):
fpb.FoldPanelBar.__init__(self, prnt, -1, pos=wx.DefaultPosition, size=wx.DefaultSize, style=fpb.FPB_SINGLE_FOLD)
Expand Down
2 changes: 1 addition & 1 deletion PyChem/Ga.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ def _init_selparam_sizers(self):
self._init_coll_gbsGaParams_Items(self.gbsGaParams)
self._init_coll_gbsGaParams_Growables(self.gbsGaParams)

self.fpParams.SetSizer(self.gbsGaParams)
self.plParams.SetSizer(self.gbsGaParams)

def _init_selparam_ctrls(self, prnt):
fpb.FoldPanelBar.__init__(self, prnt, -1, pos=wx.DefaultPosition, size=wx.DefaultSize, style=fpb.FPB_SINGLE_FOLD)
Expand Down

0 comments on commit 10cc380

Please sign in to comment.