diff --git a/invesalius/control.py b/invesalius/control.py index a01f72a..cd74ad8 100644 --- a/invesalius/control.py +++ b/invesalius/control.py @@ -523,7 +523,8 @@ class Controller(): if resolution_percentage < 1.0: re_dialog = dialog.ResizeImageDialog() re_dialog.SetValue(int(resolution_percentage*100)) - re_dialog_value = re_dialog.ShowModal() + re_dialog_value = re_dialog.ShowModal() + re_dialog.Close() if re_dialog_value == wx.ID_OK: percentage = re_dialog.GetValue() diff --git a/invesalius/gui/dialogs.py b/invesalius/gui/dialogs.py index c70b773..d6d1929 100644 --- a/invesalius/gui/dialogs.py +++ b/invesalius/gui/dialogs.py @@ -98,7 +98,7 @@ class NumberDialog(wx.Dialog): class ResizeImageDialog(wx.Dialog): def __init__(self):#, message, value=0): - pre = wx.PreDialog() + pre = self.pre = wx.PreDialog() pre.Create(None, -1, "InVesalius 3", size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE) @@ -149,6 +149,8 @@ class ResizeImageDialog(wx.Dialog): def GetValue(self): return self.num_ctrl_porcent.GetValue() + def Close(self): + self.pre.Destroy() def ShowNumberDialog(message, value=0): dlg = NumberDialog(message, value) @@ -698,8 +700,8 @@ def ShowAboutDialog(parent): info = wx.AboutDialogInfo() info.Name = "InVesalius" - info.Version = "3.0 - Beta 4" - info.Copyright = _("(c) 2007-2012 Renato Archer Information Technology Center - CTI") + info.Version = "3.0 - Beta 5" + info.Copyright = _("(c) 2007-2013 Renato Archer Information Technology Center - CTI") info.Description = wordwrap(_("InVesalius is a medical imaging program for 3D reconstruction. It uses a sequence of 2D DICOM image files acquired with CT or MRI scanners. InVesalius allows exporting 3D volumes or surfaces as STL files for creating physical models of a patient's anatomy using rapid prototyping technologies. The software is supported by CTI, CNPq and the Brazilian Ministry of Health.\n\n Contact: invesalius@cti.gov.br"), 350, wx.ClientDC(parent)) # _("InVesalius is a software for medical imaging 3D reconstruction. ")+\ @@ -707,15 +709,15 @@ def ShowAboutDialog(parent): # _("The software also allows generating correspondent STL files,")+\ # _("so the user can print 3D physical models of the patient's anatomy ")+\ # _("using Rapid Prototyping."), 350, wx.ClientDC(parent)) - info.WebSite = ("http://svn.softwarepublico.gov.br/trac/invesalius") + info.WebSite = ("http://www.cti.gov.br/invesalius") info.License = _("GNU GPL (General Public License) version 2") info.Developers = ["Paulo Henrique Junqueira Amorim", "Thiago Franco de Moraes", - "Guilherme Cesar Soares Ruppert", - "Fabio de Souza Azevedo", "Jorge Vicente Lopes da Silva", "Tatiana Al-Chueyr (former)", + "Guilherme Cesar Soares Ruppert (former)", + "Fabio de Souza Azevedo (former)", "Bruno Lara Bottazzini (contributor)"] info.Translators = ["Alex P. Natsios", -- libgit2 0.21.2