Commit ce174c0d27054198a8067a95a82551b28f846d59
1 parent
8ce40d0a
Exists in
wxgtk3_bkp
Surface task is working again
Showing
2 changed files
with
6 additions
and
3 deletions
Show diff stats
invesalius/gui/default_tasks.py
@@ -209,7 +209,7 @@ class UpperTaskPanel(wx.Panel): | @@ -209,7 +209,7 @@ class UpperTaskPanel(wx.Panel): | ||
209 | if int(session.mode) == const.MODE_RP: | 209 | if int(session.mode) == const.MODE_RP: |
210 | tasks = [(_("Load data"), importer.TaskPanel), | 210 | tasks = [(_("Load data"), importer.TaskPanel), |
211 | (_("Select region of interest"), slice_.TaskPanel), | 211 | (_("Select region of interest"), slice_.TaskPanel), |
212 | - #(_("Configure 3D surface"), surface.TaskPanel), | 212 | + (_("Configure 3D surface"), surface.TaskPanel), |
213 | (_("Export data"), exporter.TaskPanel) | 213 | (_("Export data"), exporter.TaskPanel) |
214 | ] | 214 | ] |
215 | elif int(session.mode) == const.MODE_NAVIGATOR: | 215 | elif int(session.mode) == const.MODE_NAVIGATOR: |
invesalius/gui/task_surface.py
@@ -384,7 +384,8 @@ class SurfaceProperties(wx.Panel): | @@ -384,7 +384,8 @@ class SurfaceProperties(wx.Panel): | ||
384 | ## LINE 1 | 384 | ## LINE 1 |
385 | 385 | ||
386 | # Combo related to mask naem | 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 | style=wx.CB_DROPDOWN|wx.CB_READONLY) | 389 | style=wx.CB_DROPDOWN|wx.CB_READONLY) |
389 | combo_surface_name.SetSelection(0) | 390 | combo_surface_name.SetSelection(0) |
390 | if sys.platform != 'win32': | 391 | if sys.platform != 'win32': |
@@ -533,7 +534,9 @@ class QualityAdjustment(wx.Panel): | @@ -533,7 +534,9 @@ class QualityAdjustment(wx.Panel): | ||
533 | 534 | ||
534 | # LINE 1 | 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 | style=wx.CB_DROPDOWN|wx.CB_READONLY) | 540 | style=wx.CB_DROPDOWN|wx.CB_READONLY) |
538 | combo_quality.SetSelection(3) | 541 | combo_quality.SetSelection(3) |
539 | combo_quality.SetWindowVariant(wx.WINDOW_VARIANT_SMALL) | 542 | combo_quality.SetWindowVariant(wx.WINDOW_VARIANT_SMALL) |