Commit 993a095bb6f789c478bb0cde63aeada0ac1f6d79

Authored by tatiana
1 parent 3daf5e6e

ADD: New dialogs for mask remotion and duplication

Showing 1 changed file with 34 additions and 0 deletions   Show diff stats
invesalius/gui/dialogs.py
... ... @@ -302,6 +302,40 @@ def ImportInvalidFiles():
302 302 dlg.ShowModal()
303 303 dlg.Destroy()
304 304  
  305 +def InexistentMask():
  306 + msg = _("There is no mask of reference to create a surface.")
  307 + if sys.platform == 'darwin':
  308 + dlg = wx.MessageDialog(None, "", msg,
  309 + wx.ICON_INFORMATION | wx.OK)
  310 + else:
  311 + dlg = wx.MessageDialog(None, msg, "InVesalius 3",
  312 + wx.ICON_INFORMATION | wx.OK)
  313 + dlg.ShowModal()
  314 + dlg.Destroy()
  315 +
  316 +def MaskSelectionRequiredForRemoval():
  317 + msg = _("No masks were selected for removal.")
  318 + if sys.platform == 'darwin':
  319 + dlg = wx.MessageDialog(None, "", msg,
  320 + wx.ICON_INFORMATION | wx.OK)
  321 + else:
  322 + dlg = wx.MessageDialog(None, msg, "InVesalius 3",
  323 + wx.ICON_INFORMATION | wx.OK)
  324 + dlg.ShowModal()
  325 + dlg.Destroy()
  326 +
  327 +
  328 +def MaskSelectionRequiredForDuplication():
  329 + msg = _("No masks were selected for duplication.")
  330 + if sys.platform == 'darwin':
  331 + dlg = wx.MessageDialog(None, "", msg,
  332 + wx.ICON_INFORMATION | wx.OK)
  333 + else:
  334 + dlg = wx.MessageDialog(None, msg, "InVesalius 3",
  335 + wx.ICON_INFORMATION | wx.OK)
  336 + dlg.ShowModal()
  337 + dlg.Destroy()
  338 +
305 339 def InexistentPath(path):
306 340 msg = _("%s does not exist.")%(path)
307 341 if sys.platform == 'darwin':
... ...