Commit ae85be7c5b6b76736959ca1000e6f710d9d3de83
1 parent
739f5d15
Exists in
master
and in
56 other branches
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,8 +68,8 @@ class ContourMIPConfig(wx.Panel): | ||
68 | increment=0.1, value=0.1, digits=1, | 68 | increment=0.1, value=0.1, digits=1, |
69 | agwStyle=FS.FS_LEFT) | 69 | agwStyle=FS.FS_LEFT) |
70 | w, h = self.border_spin.GetTextExtent('M') | 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 | self.inverted = wx.CheckBox(self, -1, "inverted") | 73 | self.inverted = wx.CheckBox(self, -1, "inverted") |
74 | 74 | ||
75 | txt_mip_size = wx.StaticText(self, -1, "MIP size", style=wx.ALIGN_CENTER_HORIZONTAL) | 75 | txt_mip_size = wx.StaticText(self, -1, "MIP size", style=wx.ALIGN_CENTER_HORIZONTAL) |
@@ -82,7 +82,7 @@ class ContourMIPConfig(wx.Panel): | @@ -82,7 +82,7 @@ class ContourMIPConfig(wx.Panel): | ||
82 | sizer.Add(txt_mip_border, 0, wx.EXPAND | wx.ALL, 2) | 82 | sizer.Add(txt_mip_border, 0, wx.EXPAND | wx.ALL, 2) |
83 | sizer.Add(self.border_spin, 0, wx.EXPAND) | 83 | sizer.Add(self.border_spin, 0, wx.EXPAND) |
84 | sizer.AddSpacer((10, 0)) | 84 | sizer.AddSpacer((10, 0)) |
85 | - sizer.Add(self.inverted, 1, wx.EXPAND) | 85 | + sizer.Add(self.inverted, 0, wx.EXPAND) |
86 | self.SetSizer(sizer) | 86 | self.SetSizer(sizer) |
87 | sizer.Fit(self) | 87 | sizer.Fit(self) |
88 | 88 | ||
@@ -174,6 +174,7 @@ class Viewer(wx.Panel): | @@ -174,6 +174,7 @@ class Viewer(wx.Panel): | ||
174 | self.scroll = scroll | 174 | self.scroll = scroll |
175 | 175 | ||
176 | self.mip_ctrls = ContourMIPConfig(self, self.orientation) | 176 | self.mip_ctrls = ContourMIPConfig(self, self.orientation) |
177 | + self.mip_ctrls.Hide() | ||
177 | 178 | ||
178 | sizer = wx.BoxSizer(wx.HORIZONTAL) | 179 | sizer = wx.BoxSizer(wx.HORIZONTAL) |
179 | sizer.Add(self.interactor, 1, wx.EXPAND|wx.GROW) | 180 | sizer.Add(self.interactor, 1, wx.EXPAND|wx.GROW) |
@@ -181,7 +182,7 @@ class Viewer(wx.Panel): | @@ -181,7 +182,7 @@ class Viewer(wx.Panel): | ||
181 | 182 | ||
182 | background_sizer = wx.BoxSizer(wx.VERTICAL) | 183 | background_sizer = wx.BoxSizer(wx.VERTICAL) |
183 | background_sizer.AddSizer(sizer, 1, wx.EXPAND|wx.GROW|wx.ALL, 2) | 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 | self.SetSizer(background_sizer) | 186 | self.SetSizer(background_sizer) |
186 | background_sizer.Fit(self) | 187 | background_sizer.Fit(self) |
187 | 188 |