Commit d09e271c76925913cd7b16afeabd3d01570549ed
1 parent
fcf4fcc1
Exists in
import_mesh
Added tooltips to data_notebook buttons
Showing
1 changed file
with
16 additions
and
0 deletions
Show diff stats
invesalius/gui/data_notebook.py
| ... | ... | @@ -162,15 +162,20 @@ class MeasureButtonControlPanel(wx.Panel): |
| 162 | 162 | BMP_NEW, |
| 163 | 163 | style=button_style, |
| 164 | 164 | size = wx.Size(24, 20)) |
| 165 | + button_new.SetToolTipString(_("Create a new measure")) | |
| 165 | 166 | self.button_new = button_new |
| 167 | + | |
| 166 | 168 | button_remove = pbtn.PlateButton(self, BTN_REMOVE, "", |
| 167 | 169 | BMP_REMOVE, |
| 168 | 170 | style=button_style, |
| 169 | 171 | size = wx.Size(24, 20)) |
| 172 | + button_remove.SetToolTipString(_("Remove measure")) | |
| 173 | + | |
| 170 | 174 | button_duplicate = pbtn.PlateButton(self, BTN_DUPLICATE, "", |
| 171 | 175 | BMP_DUPLICATE, |
| 172 | 176 | style=button_style, |
| 173 | 177 | size = wx.Size(24, 20)) |
| 178 | + button_duplicate.SetToolTipString(_("Duplicate measure")) | |
| 174 | 179 | button_duplicate.Disable() |
| 175 | 180 | |
| 176 | 181 | # Add all controls to gui |
| ... | ... | @@ -275,14 +280,19 @@ class ButtonControlPanel(wx.Panel): |
| 275 | 280 | BMP_NEW, |
| 276 | 281 | style=button_style, |
| 277 | 282 | size = wx.Size(24, 20)) |
| 283 | + button_new.SetToolTipString(_("Create a new mask")) | |
| 284 | + | |
| 278 | 285 | button_remove = pbtn.PlateButton(self, BTN_REMOVE, "", |
| 279 | 286 | BMP_REMOVE, |
| 280 | 287 | style=button_style, |
| 281 | 288 | size = wx.Size(24, 20)) |
| 289 | + button_remove.SetToolTipString(_("Remove mask")) | |
| 290 | + | |
| 282 | 291 | button_duplicate = pbtn.PlateButton(self, BTN_DUPLICATE, "", |
| 283 | 292 | BMP_DUPLICATE, |
| 284 | 293 | style=button_style, |
| 285 | 294 | size = wx.Size(24, 20)) |
| 295 | + button_duplicate.SetToolTipString(_("Duplicate mask")) | |
| 286 | 296 | |
| 287 | 297 | # Add all controls to gui |
| 288 | 298 | sizer = wx.BoxSizer(wx.HORIZONTAL) |
| ... | ... | @@ -601,14 +611,20 @@ class SurfaceButtonControlPanel(wx.Panel): |
| 601 | 611 | BMP_NEW, |
| 602 | 612 | style=button_style, |
| 603 | 613 | size = wx.Size(24, 20)) |
| 614 | + button_new.SetToolTipString(_("Create a new surface")) | |
| 615 | + | |
| 604 | 616 | button_remove = pbtn.PlateButton(self, BTN_REMOVE, "", |
| 605 | 617 | BMP_REMOVE, |
| 606 | 618 | style=button_style, |
| 607 | 619 | size = wx.Size(24, 20)) |
| 620 | + button_remove.SetToolTipString(_("Remove surface")) | |
| 621 | + | |
| 608 | 622 | button_duplicate = pbtn.PlateButton(self, BTN_DUPLICATE, "", |
| 609 | 623 | BMP_DUPLICATE, |
| 610 | 624 | style=button_style, |
| 611 | 625 | size = wx.Size(24, 20)) |
| 626 | + button_duplicate.SetToolTipString(_("Duplicate surface")) | |
| 627 | + | |
| 612 | 628 | button_open = pbtn.PlateButton(self, BTN_OPEN, "", |
| 613 | 629 | BMP_OPEN, |
| 614 | 630 | style=button_style, | ... | ... |