Commit 79e73e8e74647aeabc6dbe716dceade936ed3ed0

Authored by Paulo Henrique Junqueira Amorim
1 parent 83ca712c

ENH: Changed message from dialog save project

Showing 1 changed file with 9 additions and 1 deletions   Show diff stats
invesalius/gui/dialogs.py
@@ -373,13 +373,17 @@ def SaveChangesDialog(filename, parent): @@ -373,13 +373,17 @@ def SaveChangesDialog(filename, parent):
373 dlg = wx.MessageDialog(None, "", msg, 373 dlg = wx.MessageDialog(None, "", msg,
374 wx.ICON_QUESTION | wx.YES_NO | wx.CANCEL) 374 wx.ICON_QUESTION | wx.YES_NO | wx.CANCEL)
375 else: 375 else:
376 - dlg = wx.MessageDialog(None, "TESTETSTE", "InVesalius 3", 376 + dlg = wx.MessageDialog(None, msg, "InVesalius 3",
377 wx.ICON_QUESTION | wx.YES_NO | wx.CANCEL) 377 wx.ICON_QUESTION | wx.YES_NO | wx.CANCEL)
  378 +
  379 + dlg.Bind(wx.EVT_LEFT_UP, teste)
  380 +
378 try: 381 try:
379 answer = dlg.ShowModal() 382 answer = dlg.ShowModal()
380 except(wx._core.PyAssertionError): #TODO: FIX win64 383 except(wx._core.PyAssertionError): #TODO: FIX win64
381 answer = wx.ID_YES 384 answer = wx.ID_YES
382 385
  386 +
383 dlg.Destroy() 387 dlg.Destroy()
384 os.chdir(current_dir) 388 os.chdir(current_dir)
385 389
@@ -390,6 +394,10 @@ def SaveChangesDialog(filename, parent): @@ -390,6 +394,10 @@ def SaveChangesDialog(filename, parent):
390 else: 394 else:
391 return -1 395 return -1
392 396
  397 +def teste(evt):
  398 + print evt
  399 + print "ENTROUUUUUUUUUUUUUUUUUUUUUUUUUUU"
  400 +
393 def SaveChangesDialog2(filename): 401 def SaveChangesDialog2(filename):
394 current_dir = os.path.abspath(".") 402 current_dir = os.path.abspath(".")
395 msg = _("The project %s has been modified.\nSave changes?")%filename 403 msg = _("The project %s has been modified.\nSave changes?")%filename