Commit ce174c0d27054198a8067a95a82551b28f846d59

Authored by Thiago Franco de Moraes
1 parent 8ce40d0a
Exists in wxgtk3_bkp

Surface task is working again

invesalius/gui/default_tasks.py
... ... @@ -209,7 +209,7 @@ class UpperTaskPanel(wx.Panel):
209 209 if int(session.mode) == const.MODE_RP:
210 210 tasks = [(_("Load data"), importer.TaskPanel),
211 211 (_("Select region of interest"), slice_.TaskPanel),
212   - #(_("Configure 3D surface"), surface.TaskPanel),
  212 + (_("Configure 3D surface"), surface.TaskPanel),
213 213 (_("Export data"), exporter.TaskPanel)
214 214 ]
215 215 elif int(session.mode) == const.MODE_NAVIGATOR:
... ...
invesalius/gui/task_surface.py
... ... @@ -384,7 +384,8 @@ class SurfaceProperties(wx.Panel):
384 384 ## LINE 1
385 385  
386 386 # Combo related to mask naem
387   - combo_surface_name = wx.ComboBox(self, -1, "", choices= self.surface_dict.keys(),
  387 + combo_surface_name = wx.ComboBox(self, -1, "", choices=
  388 + self.surface_dict.keys() or ["", ],
388 389 style=wx.CB_DROPDOWN|wx.CB_READONLY)
389 390 combo_surface_name.SetSelection(0)
390 391 if sys.platform != 'win32':
... ... @@ -533,7 +534,9 @@ class QualityAdjustment(wx.Panel):
533 534  
534 535 # LINE 1
535 536  
536   - combo_quality = wx.ComboBox(self, -1, "", choices=const.SURFACE_QUALITY.keys(),
  537 + combo_quality = wx.ComboBox(self, -1, "",
  538 + choices=const.SURFACE_QUALITY.keys() or
  539 + ["", ],
537 540 style=wx.CB_DROPDOWN|wx.CB_READONLY)
538 541 combo_quality.SetSelection(3)
539 542 combo_quality.SetWindowVariant(wx.WINDOW_VARIANT_SMALL)
... ...