From 6d8a0c4eb8daac0be9d91789622b6d46c4b011ca Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Thu, 14 Jan 2010 12:22:08 +0000 Subject: [PATCH] FIX: Error create 3D surface "wx._core.PyAssertionError", win64 --- invesalius/gui/task_slice.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/invesalius/gui/task_slice.py b/invesalius/gui/task_slice.py index 5a5f6fd..475f6bb 100644 --- a/invesalius/gui/task_slice.py +++ b/invesalius/gui/task_slice.py @@ -141,10 +141,17 @@ class InnerTaskPanel(wx.Panel): default_mask_name = const.MASK_NAME_PATTERN %(mask.Mask.general_index+2) dlg.SetValue(default_mask_name) - if dlg.ShowModal() == wx.ID_OK: - print "TODO: Send Signal - New mask" + try: + op = dlg.ShowModal() == wx.ID_OK + except(wx._core.PyAssertionError): + print "win64 - wx._core.PyAssertionError" + op = True + + print "TODO: Send Signal - New mask" + if (op): mask_name = dlg.GetValue() ps.Publisher().sendMessage('Create new mask', mask_name) + if evt: evt.Skip() -- libgit2 0.21.2