Commit 364be345ae5c8d1fe4c5eaf54e2554c86687b58b

Authored by Thiago Franco de Moraes
1 parent 53411b1e

Setting mip value in spinctrl

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/data/viewer_slice.py
@@ -61,8 +61,8 @@ class ContourMIPConfig(wx.Panel): @@ -61,8 +61,8 @@ class ContourMIPConfig(wx.Panel):
61 def __init__(self, prnt, orientation): 61 def __init__(self, prnt, orientation):
62 wx.Panel.__init__(self, prnt) 62 wx.Panel.__init__(self, prnt)
63 self.mip_size_spin = wx.SpinCtrl(self, -1, min=1, max=240, 63 self.mip_size_spin = wx.SpinCtrl(self, -1, min=1, max=240,
64 - value=str(const.PROJECTION_MIP_SIZE),  
65 initial=const.PROJECTION_MIP_SIZE) 64 initial=const.PROJECTION_MIP_SIZE)
  65 + self.mip_size_spin.SetValue(const.PROJECTION_MIP_SIZE)
66 self.mip_size_spin.SetToolTip(wx.ToolTip(_("Number of slices used to compound the visualization."))) 66 self.mip_size_spin.SetToolTip(wx.ToolTip(_("Number of slices used to compound the visualization.")))
67 w, h = self.mip_size_spin.GetTextExtent('M') 67 w, h = self.mip_size_spin.GetTextExtent('M')
68 self.mip_size_spin.SetMinSize((5 * w + 10, -1)) 68 self.mip_size_spin.SetMinSize((5 * w + 10, -1))