From ce174c0d27054198a8067a95a82551b28f846d59 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Sun, 24 Feb 2013 22:43:30 -0300 Subject: [PATCH] Surface task is working again --- invesalius/gui/default_tasks.py | 2 +- invesalius/gui/task_surface.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/invesalius/gui/default_tasks.py b/invesalius/gui/default_tasks.py index 913e63e..4a1f984 100644 --- a/invesalius/gui/default_tasks.py +++ b/invesalius/gui/default_tasks.py @@ -209,7 +209,7 @@ class UpperTaskPanel(wx.Panel): if int(session.mode) == const.MODE_RP: tasks = [(_("Load data"), importer.TaskPanel), (_("Select region of interest"), slice_.TaskPanel), - #(_("Configure 3D surface"), surface.TaskPanel), + (_("Configure 3D surface"), surface.TaskPanel), (_("Export data"), exporter.TaskPanel) ] elif int(session.mode) == const.MODE_NAVIGATOR: diff --git a/invesalius/gui/task_surface.py b/invesalius/gui/task_surface.py index 354314f..44ca30c 100644 --- a/invesalius/gui/task_surface.py +++ b/invesalius/gui/task_surface.py @@ -384,7 +384,8 @@ class SurfaceProperties(wx.Panel): ## LINE 1 # Combo related to mask naem - combo_surface_name = wx.ComboBox(self, -1, "", choices= self.surface_dict.keys(), + combo_surface_name = wx.ComboBox(self, -1, "", choices= + self.surface_dict.keys() or ["", ], style=wx.CB_DROPDOWN|wx.CB_READONLY) combo_surface_name.SetSelection(0) if sys.platform != 'win32': @@ -533,7 +534,9 @@ class QualityAdjustment(wx.Panel): # LINE 1 - combo_quality = wx.ComboBox(self, -1, "", choices=const.SURFACE_QUALITY.keys(), + combo_quality = wx.ComboBox(self, -1, "", + choices=const.SURFACE_QUALITY.keys() or + ["", ], style=wx.CB_DROPDOWN|wx.CB_READONLY) combo_quality.SetSelection(3) combo_quality.SetWindowVariant(wx.WINDOW_VARIANT_SMALL) -- libgit2 0.21.2