Commit 5d6aefdb33f414d7b0a6e11054cff7952529f17b

Authored by tfmoraes
1 parent fbd518e2

FIX: Oops! it was missing the dialog in the last commit

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
invesalius/gui/dialogs.py
... ... @@ -320,3 +320,13 @@ def ShowAboutDialog(parent):
320 320 # Then we call wx.AboutBox giving its info object
321 321 wx.AboutBox(info)
322 322  
  323 +
  324 +def ShowSavePresetDialog(default_filename="raycasting"):
  325 + dlg = wx.TextEntryDialog(None,
  326 + "Save raycasting preset as:",
  327 + "InVesalius 3")
  328 + #dlg.SetFilterIndex(0) # default is VTI
  329 + filename = None
  330 + if dlg.ShowModal() == wx.ID_OK:
  331 + filename = dlg.GetValue()
  332 + return filename
... ...