Commit 6d8a0c4eb8daac0be9d91789622b6d46c4b011ca
1 parent
fcdd28c1
Exists in
master
and in
6 other branches
FIX: Error create 3D surface "wx._core.PyAssertionError", win64
Showing
1 changed file
with
9 additions
and
2 deletions
Show diff stats
invesalius/gui/task_slice.py
... | ... | @@ -141,10 +141,17 @@ class InnerTaskPanel(wx.Panel): |
141 | 141 | default_mask_name = const.MASK_NAME_PATTERN %(mask.Mask.general_index+2) |
142 | 142 | dlg.SetValue(default_mask_name) |
143 | 143 | |
144 | - if dlg.ShowModal() == wx.ID_OK: | |
145 | - print "TODO: Send Signal - New mask" | |
144 | + try: | |
145 | + op = dlg.ShowModal() == wx.ID_OK | |
146 | + except(wx._core.PyAssertionError): | |
147 | + print "win64 - wx._core.PyAssertionError" | |
148 | + op = True | |
149 | + | |
150 | + print "TODO: Send Signal - New mask" | |
151 | + if (op): | |
146 | 152 | mask_name = dlg.GetValue() |
147 | 153 | ps.Publisher().sendMessage('Create new mask', mask_name) |
154 | + | |
148 | 155 | if evt: |
149 | 156 | evt.Skip() |
150 | 157 | ... | ... |