Commit ae85be7c5b6b76736959ca1000e6f710d9d3de83

Authored by Thiago Franco de Moraes
1 parent 739f5d15

Initing with normal visualization instead of mida

Showing 1 changed file with 5 additions and 4 deletions   Show diff stats
invesalius/data/viewer_slice.py
... ... @@ -68,8 +68,8 @@ class ContourMIPConfig(wx.Panel):
68 68 increment=0.1, value=0.1, digits=1,
69 69 agwStyle=FS.FS_LEFT)
70 70 w, h = self.border_spin.GetTextExtent('M')
71   - self.border_spin.SetMinSize((4 * w + 10, -1))
72   - self.border_spin.SetMaxSize((4 * w + 10, -1))
  71 + self.border_spin.SetMinSize((5 * w + 10, -1))
  72 + self.border_spin.SetMaxSize((5 * w + 10, -1))
73 73 self.inverted = wx.CheckBox(self, -1, "inverted")
74 74  
75 75 txt_mip_size = wx.StaticText(self, -1, "MIP size", style=wx.ALIGN_CENTER_HORIZONTAL)
... ... @@ -82,7 +82,7 @@ class ContourMIPConfig(wx.Panel):
82 82 sizer.Add(txt_mip_border, 0, wx.EXPAND | wx.ALL, 2)
83 83 sizer.Add(self.border_spin, 0, wx.EXPAND)
84 84 sizer.AddSpacer((10, 0))
85   - sizer.Add(self.inverted, 1, wx.EXPAND)
  85 + sizer.Add(self.inverted, 0, wx.EXPAND)
86 86 self.SetSizer(sizer)
87 87 sizer.Fit(self)
88 88  
... ... @@ -174,6 +174,7 @@ class Viewer(wx.Panel):
174 174 self.scroll = scroll
175 175  
176 176 self.mip_ctrls = ContourMIPConfig(self, self.orientation)
  177 + self.mip_ctrls.Hide()
177 178  
178 179 sizer = wx.BoxSizer(wx.HORIZONTAL)
179 180 sizer.Add(self.interactor, 1, wx.EXPAND|wx.GROW)
... ... @@ -181,7 +182,7 @@ class Viewer(wx.Panel):
181 182  
182 183 background_sizer = wx.BoxSizer(wx.VERTICAL)
183 184 background_sizer.AddSizer(sizer, 1, wx.EXPAND|wx.GROW|wx.ALL, 2)
184   - background_sizer.Add(self.mip_ctrls, 0, wx.EXPAND|wx.GROW|wx.ALL, 2)
  185 + #background_sizer.Add(self.mip_ctrls, 0, wx.EXPAND|wx.GROW|wx.ALL, 2)
185 186 self.SetSizer(background_sizer)
186 187 background_sizer.Fit(self)
187 188  
... ...