Commit a7b633686c4c922885a51d531e1dceed354cd322
1 parent
82dc4855
Exists in
master
and in
56 other branches
Added tooltips to the gui used to config the mips visualization
Showing
1 changed file
with
14 additions
and
2 deletions
Show diff stats
invesalius/data/viewer_slice.py
... | ... | @@ -62,20 +62,32 @@ class ContourMIPConfig(wx.Panel): |
62 | 62 | wx.Panel.__init__(self, prnt) |
63 | 63 | self.mip_size_spin = wx.SpinCtrl(self, -1, min=1, max=240, |
64 | 64 | initial=const.PROJECTION_MIP_SIZE) |
65 | + self.mip_size_spin.SetToolTip(wx.ToolTip(_("Number of slices used to compound the visualization"))) | |
65 | 66 | w, h = self.mip_size_spin.GetTextExtent('M') |
66 | 67 | self.mip_size_spin.SetMinSize((4 * w + 10, -1)) |
67 | 68 | self.mip_size_spin.SetMaxSize((4 * w + 10, -1)) |
69 | + | |
68 | 70 | self.border_spin = FS.FloatSpin(self, -1, min_val=0, max_val=10, |
69 | 71 | increment=0.1, |
70 | 72 | value=const.PROJECTION_BORDER_SIZE, |
71 | 73 | digits=1, agwStyle=FS.FS_LEFT) |
74 | + self.border_spin.SetToolTip(wx.ToolTip(_("Controls the sharpness of the" | |
75 | + " contour. The greater the" | |
76 | + " value, the sharper the" | |
77 | + " contour"))) | |
72 | 78 | w, h = self.border_spin.GetTextExtent('M') |
73 | 79 | self.border_spin.SetMinSize((5 * w + 10, -1)) |
74 | 80 | self.border_spin.SetMaxSize((5 * w + 10, -1)) |
81 | + | |
75 | 82 | self.inverted = wx.CheckBox(self, -1, "inverted") |
83 | + self.inverted.SetToolTip(wx.ToolTip(_("If checked, the slices are" | |
84 | + " traversed in descending" | |
85 | + " order to compound the" | |
86 | + " visualization instead of" | |
87 | + " ascending order"))) | |
76 | 88 | |
77 | - txt_mip_size = wx.StaticText(self, -1, "MIP size", style=wx.ALIGN_CENTER_HORIZONTAL) | |
78 | - self.txt_mip_border = wx.StaticText(self, -1, "Border") | |
89 | + txt_mip_size = wx.StaticText(self, -1, "Number of slices", style=wx.ALIGN_CENTER_HORIZONTAL) | |
90 | + self.txt_mip_border = wx.StaticText(self, -1, "Sharpness") | |
79 | 91 | |
80 | 92 | sizer = wx.BoxSizer(wx.HORIZONTAL) |
81 | 93 | sizer.Add(txt_mip_size, 0, wx.EXPAND | wx.ALL, 2) | ... | ... |