Commit 364be345ae5c8d1fe4c5eaf54e2554c86687b58b
1 parent
53411b1e
Exists in
master
and in
38 other branches
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 | 61 | def __init__(self, prnt, orientation): |
62 | 62 | wx.Panel.__init__(self, prnt) |
63 | 63 | self.mip_size_spin = wx.SpinCtrl(self, -1, min=1, max=240, |
64 | - value=str(const.PROJECTION_MIP_SIZE), | |
65 | 64 | initial=const.PROJECTION_MIP_SIZE) |
65 | + self.mip_size_spin.SetValue(const.PROJECTION_MIP_SIZE) | |
66 | 66 | self.mip_size_spin.SetToolTip(wx.ToolTip(_("Number of slices used to compound the visualization."))) |
67 | 67 | w, h = self.mip_size_spin.GetTextExtent('M') |
68 | 68 | self.mip_size_spin.SetMinSize((5 * w + 10, -1)) | ... | ... |