From 5d6aefdb33f414d7b0a6e11054cff7952529f17b Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Fri, 4 Dec 2009 16:46:14 +0000 Subject: [PATCH] FIX: Oops! it was missing the dialog in the last commit --- invesalius/gui/dialogs.py | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py index 7d8f817..7d2117d 100644 --- a/invesalius/gui/dialogs.py +++ b/invesalius/gui/dialogs.py @@ -320,3 +320,13 @@ def ShowAboutDialog(parent): # Then we call wx.AboutBox giving its info object wx.AboutBox(info) + +def ShowSavePresetDialog(default_filename="raycasting"): + dlg = wx.TextEntryDialog(None, + "Save raycasting preset as:", + "InVesalius 3") + #dlg.SetFilterIndex(0) # default is VTI + filename = None + if dlg.ShowModal() == wx.ID_OK: + filename = dlg.GetValue() + return filename -- libgit2 0.21.2