[GRASS-SVN] r33878 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 14 14:09:29 EDT 2008
Author: martinl
Date: 2008-10-14 14:09:29 -0400 (Tue, 14 Oct 2008)
New Revision: 33878
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: fix gselect.Select wx.EVT_TEXT
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py 2008-10-14 17:35:41 UTC (rev 33877)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/menuform.py 2008-10-14 18:09:29 UTC (rev 33878)
@@ -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