Quellcode durchsuchen

wxGUI: fix gselect.Select wx.EVT_TEXT
(merge from devbr6, https://trac.osgeo.org/grass/changeset/33878)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33879 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa vor 16 Jahren
Ursprung
Commit
0f3bb46115
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      gui/wxpython/gui_modules/menuform.py

+ 2 - 1
gui/wxpython/gui_modules/menuform.py

@@ -1155,10 +1155,11 @@ class cmdPanel(wx.Panel):
 
                     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)