Commit e6f597e763f2d86da7f107f4431330f361b58f4d

Authored by tatiana
1 parent 9cf1b5c4

ADD: About dialog

Showing 1 changed file with 32 additions and 0 deletions   Show diff stats
invesalius/gui/dialogs.py
@@ -21,8 +21,11 @@ import sys @@ -21,8 +21,11 @@ import sys
21 21
22 import wx 22 import wx
23 from wx.lib import masked 23 from wx.lib import masked
  24 +from wx.lib.wordwrap import wordwrap
24 import wx.lib.pubsub as ps 25 import wx.lib.pubsub as ps
25 26
  27 +
  28 +
26 import project 29 import project
27 30
28 class NumberDialog(wx.Dialog): 31 class NumberDialog(wx.Dialog):
@@ -288,3 +291,32 @@ def SaveChangesDialog2(filename): @@ -288,3 +291,32 @@ def SaveChangesDialog2(filename):
288 return 1 291 return 1
289 else:# answer == wx.ID_NO: 292 else:# answer == wx.ID_NO:
290 return 0 293 return 0
  294 +
  295 +
  296 +
  297 +def ShowAboutDialog(parent):
  298 +
  299 + info = wx.AboutDialogInfo()
  300 + info.Name = "InVesalius"
  301 + info.Version = "3.a.1 - RP"
  302 + info.Copyright = "(C) 2007 Renato Archer Research Centre"
  303 + info.Description = wordwrap(
  304 + "InVesalius is a software for medical imaging 3D reconstruction. "+\
  305 + "Its input is a sequency of DICOM 2D image files acquired with CT or MR.\n\n"+\
  306 + "The software also allows generating correspondent STL files,"+\
  307 + "so the user can print 3D physical models of the patient's anatomy "+\
  308 + "using Rapid Prototyping.", 350, wx.ClientDC(parent))
  309 + info.WebSite = ("http://www.softwarepublico.gov.br/",
  310 + "InVesalius Community")
  311 + info.License = "GNU GPL (General Public License) version 2"
  312 +
  313 + #info.Translators = ""
  314 + #info.Artists =
  315 + info.Developers = ["Tatiana Al-Chueyr",
  316 + "Paulo Henrique Junqueira Amorim",
  317 + "Thiago Franco de Moraes"]
  318 + #info.DocWriters =
  319 +
  320 + # Then we call wx.AboutBox giving its info object
  321 + wx.AboutBox(info)
  322 +