From 56b7aa385dec233ca67ceb7dcc0bef58367f7422 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Mon, 30 Nov 2020 14:43:03 +0100 Subject: [PATCH] simplified stepwise box filling --- slic/gui/daqpanels.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/slic/gui/daqpanels.py b/slic/gui/daqpanels.py index cc0da304..cc7c7228 100644 --- a/slic/gui/daqpanels.py +++ b/slic/gui/daqpanels.py @@ -320,17 +320,13 @@ class TweakPanel(wx.Panel): # vbox = make_filled_vbox(widgets, border=10) #TODO: - vbox = wx.BoxSizer(wx.VERTICAL) - widgets = (cb_adjs, st_adj) - for i in widgets: - vbox.Add(i, proportion=0, flag=wx.ALL|wx.EXPAND, border=10) + vbox = make_filled_vbox(widgets, border=10) vbox.Add(lc_log, proportion=1, flag=wx.ALL|wx.EXPAND, border=10) widgets = (lte, le_abs, btn_go) - for i in widgets: - vbox.Add(i, proportion=0, flag=wx.ALL|wx.EXPAND, border=10) + vbox = make_filled_vbox(widgets, border=10, box=vbox) #TODO. self.SetSizerAndFit(vbox)