From 02c0f793d7d29eab46fe00850f6869fe6d1d4af1 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Thu, 7 May 2015 22:41:22 -0300 Subject: [PATCH] problem with combobox in mac --- invesalius/gui/task_surface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invesalius/gui/task_surface.py b/invesalius/gui/task_surface.py index 9afcc7b..d2cd6b2 100644 --- a/invesalius/gui/task_surface.py +++ b/invesalius/gui/task_surface.py @@ -405,9 +405,9 @@ class SurfaceProperties(wx.Panel): ## LINE 1 # Combo related to mask naem - combo_surface_name = wx.ComboBox(self, -1, "", + combo_surface_name = wx.ComboBox(self, -1, style=wx.CB_DROPDOWN|wx.CB_READONLY) - combo_surface_name.SetSelection(0) + #combo_surface_name.SetSelection(0) if sys.platform != 'win32': combo_surface_name.SetWindowVariant(wx.WINDOW_VARIANT_SMALL) combo_surface_name.Bind(wx.EVT_COMBOBOX, self.OnComboName) -- libgit2 0.21.2