Commit 1a25da81ff1491cb30310c667a4c5a3b09fb1559

Authored by Thiago Franco de Moraes
Committed by thiago
1 parent e6468d32
Exists in wxgtk3_b5

Putting combobox thresholds presets in a new line

Showing 1 changed file with 2 additions and 4 deletions   Show diff stats
invesalius/gui/task_slice.py
... ... @@ -341,9 +341,6 @@ class MaskProperties(wx.Panel):
341 341 combo_thresh.SetWindowVariant(wx.WINDOW_VARIANT_SMALL)
342 342 self.combo_thresh = combo_thresh
343 343  
344   - line2 = wx.BoxSizer(wx.HORIZONTAL)
345   - line2.Add(text_thresh, 0, wx.GROW|wx.EXPAND|wx.ALL, 5)
346   - line2.Add(combo_thresh, 0, wx.EXPAND|wx.GROW|wx.TOP|wx.RIGHT, 2)
347 344  
348 345 ## LINE 4
349 346 gradient = grad.GradientCtrl(self, -1, -5000, 5000, 0, 5000,
... ... @@ -353,7 +350,8 @@ class MaskProperties(wx.Panel):
353 350 # Add all lines into main sizer
354 351 sizer = wx.BoxSizer(wx.VERTICAL)
355 352 sizer.Add(line1, 0, wx.GROW|wx.EXPAND|wx.LEFT|wx.RIGHT|wx.TOP, 5)
356   - sizer.Add(line2, 0, wx.GROW|wx.EXPAND|wx.LEFT|wx.RIGHT, 5)
  353 + sizer.Add(text_thresh, 0, wx.GROW|wx.EXPAND|wx.ALL, 5)
  354 + sizer.Add(combo_thresh, 0, wx.EXPAND|wx.GROW|wx.TOP|wx.RIGHT, 2)
357 355 sizer.Add(gradient, 1, wx.EXPAND|wx.TOP|wx.LEFT|wx.RIGHT|wx.BOTTOM, 6)
358 356 sizer.Fit(self)
359 357  
... ...