浏览代码

wxGUI/forms: fix EVT_TEXT for PictureComboBoxes

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57990 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父节点
当前提交
4b6f9b4644
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_core/forms.py

+ 1 - 1
gui/wxpython/gui_core/forms.py

@@ -1584,7 +1584,7 @@ class CmdPanel(wx.Panel):
                         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.GetId(),]
+                    p['wxId'] = [cb.GetTextCtrl().GetId(),]
                     cb.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
                     cb.Bind(wx.EVT_TEXT, self.OnSetValue)
                     if p.get('guidependency', ''):