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