[GRASS-SVN] r50707 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 7 07:30:17 EST 2012


Author: martinl
Date: 2012-02-07 04:30:17 -0800 (Tue, 07 Feb 2012)
New Revision: 50707

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
   grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: SubGroupSelect widget should be editable


Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2012-02-07 11:21:52 UTC (rev 50706)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2012-02-07 12:30:17 UTC (rev 50707)
@@ -1228,6 +1228,7 @@
                     selection = gselect.SubGroupSelect(parent = which_panel)
                     p['wxId'] = [ selection.GetId() ]
                     selection.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
+                    selection.Bind(wx.EVT_TEXT,     self.OnSetValue)
                     which_sizer.Add(item = selection, proportion = 0,
                                     flag = wx.ADJUST_MINSIZE | wx.BOTTOM | wx.LEFT | wx.RIGHT | wx.TOP | wx.ALIGN_CENTER_VERTICAL,
                                     border = 5)

Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py	2012-02-07 11:21:52 UTC (rev 50706)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py	2012-02-07 12:30:17 UTC (rev 50707)
@@ -979,7 +979,7 @@
     def __init__(self, parent, id = wx.ID_ANY, size = globalvar.DIALOG_GSELECT_SIZE, 
                  **kwargs):
         super(SubGroupSelect, self).__init__(parent, id, size = size, 
-                                             style = wx.CB_READONLY, **kwargs)
+                                             **kwargs)
         self.SetName("SubGroupSelect")
 
     def Insert(self, group):



More information about the grass-commit mailing list