[GRASS-SVN] r58012 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 16 01:44:27 PDT 2013
Author: martinl
Date: 2013-10-16 01:44:27 -0700 (Wed, 16 Oct 2013)
New Revision: 58012
Modified:
grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: fix colortable widget for wx 2.9
Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py 2013-10-16 04:14:09 UTC (rev 58011)
+++ grass/trunk/gui/wxpython/gui_core/forms.py 2013-10-16 08:44:27 UTC (rev 58012)
@@ -1584,9 +1584,9 @@
cb.SetValue(value) # parameter previously set
which_sizer.Add(item = cb, proportion = 0,
flag = wx.ADJUST_MINSIZE | wx.BOTTOM | wx.LEFT, border = 5)
- p['wxId'] = [cb.GetTextCtrl().GetId(),]
+ p['wxId'] = [cb.GetId(), cb.GetTextCtrl().GetId()]
cb.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
- cb.Bind(wx.EVT_TEXT, self.OnSetValue)
+ cb.GetTextCtrl().Bind(wx.EVT_TEXT, self.OnSetValue)
if p.get('guidependency', ''):
cb.Bind(wx.EVT_COMBOBOX, self.OnUpdateSelection)
More information about the grass-commit
mailing list