From 993a095bb6f789c478bb0cde63aeada0ac1f6d79 Mon Sep 17 00:00:00 2001 From: tatiana Date: Wed, 3 Feb 2010 13:14:21 +0000 Subject: [PATCH] ADD: New dialogs for mask remotion and duplication --- invesalius/gui/dialogs.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+), 0 deletions(-) diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py index 9d9691d..b2c0637 100644 --- a/invesalius/gui/dialogs.py +++ b/invesalius/gui/dialogs.py @@ -302,6 +302,40 @@ def ImportInvalidFiles(): dlg.ShowModal() dlg.Destroy() +def InexistentMask(): + msg = _("There is no mask of reference to create a surface.") + if sys.platform == 'darwin': + dlg = wx.MessageDialog(None, "", msg, + wx.ICON_INFORMATION | wx.OK) + else: + dlg = wx.MessageDialog(None, msg, "InVesalius 3", + wx.ICON_INFORMATION | wx.OK) + dlg.ShowModal() + dlg.Destroy() + +def MaskSelectionRequiredForRemoval(): + msg = _("No masks were selected for removal.") + if sys.platform == 'darwin': + dlg = wx.MessageDialog(None, "", msg, + wx.ICON_INFORMATION | wx.OK) + else: + dlg = wx.MessageDialog(None, msg, "InVesalius 3", + wx.ICON_INFORMATION | wx.OK) + dlg.ShowModal() + dlg.Destroy() + + +def MaskSelectionRequiredForDuplication(): + msg = _("No masks were selected for duplication.") + if sys.platform == 'darwin': + dlg = wx.MessageDialog(None, "", msg, + wx.ICON_INFORMATION | wx.OK) + else: + dlg = wx.MessageDialog(None, msg, "InVesalius 3", + wx.ICON_INFORMATION | wx.OK) + dlg.ShowModal() + dlg.Destroy() + def InexistentPath(path): msg = _("%s does not exist.")%(path) if sys.platform == 'darwin': -- libgit2 0.21.2