[GRASS-SVN] r33879 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 14 14:10:45 EDT 2008
Author: martinl
Date: 2008-10-14 14:10:45 -0400 (Tue, 14 Oct 2008)
New Revision: 33879
Modified:
grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: fix gselect.Select wx.EVT_TEXT
(merge from devbr6, r33878)
Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py 2008-10-14 18:09:29 UTC (rev 33878)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py 2008-10-14 18:10:45 UTC (rev 33879)
@@ -1155,10 +1155,11 @@
which_sizer.Add(item=selection, proportion=0,
flag=wx.ADJUST_MINSIZE| wx.BOTTOM | wx.LEFT | wx.RIGHT, border=5)
+
# A select.Select is a combobox with two children: a textctl and a popupwindow;
# we target the textctl here
p['wxId'] = selection.GetChildren()[0].GetId()
- selection.Bind(wx.EVT_TEXT, self.OnSetValue)
+ selection.GetChildren()[0].Bind(wx.EVT_TEXT, self.OnSetValue)
if p.get('prompt', '') == 'vector':
selection.Bind(wx.EVT_TEXT, self.OnUpdateSelection)
More information about the grass-commit
mailing list