Commit f17e9109ed0faf06a6539c91882acfe9f91fc991

Authored by Thiago Franco de Moraes
1 parent 9333ff7d

Gui improvements

invesalius/gui/dialogs.py
... ... @@ -1404,7 +1404,11 @@ class MaskBooleanDialog(wx.Dialog):
1404 1404 self.mask2.Append(n, m)
1405 1405  
1406 1406 self.mask1.SetSelection(0)
1407   - self.mask2.SetSelection(0)
  1407 +
  1408 + if len(mask_choices) > 1:
  1409 + self.mask2.SetSelection(1)
  1410 + else:
  1411 + self.mask2.SetSelection(0)
1408 1412  
1409 1413 op_choices = ((u"Union", const.BOOLEAN_UNION),
1410 1414 (u"Difference", const.BOOLEAN_DIFF),
... ...
invesalius/gui/frame.py
... ... @@ -609,7 +609,7 @@ class MenuBar(wx.MenuBar):
609 609 #app(const.ID_EDIT_LIST, "Show Undo List...")
610 610 #################################################################
611 611  
612   - file_edit.Append(const.ID_BOOLEAN_MASK, _(u"\tBoolean operations"))
  612 + file_edit.Append(const.ID_BOOLEAN_MASK, _(u"Boolean operations"))
613 613  
614 614  
615 615 # VIEW
... ...