浏览代码

wxGUI: attempt to fix https://trac.osgeo.org/grass/ticket/2650 (merge from trunk, https://trac.osgeo.org/grass/changeset/65027)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@65028 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 年之前
父节点
当前提交
510c089752
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      gui/wxpython/gui_core/forms.py

+ 2 - 0
gui/wxpython/gui_core/forms.py

@@ -1329,6 +1329,7 @@ class CmdPanel(wx.Panel):
                     selection = gselect.SignatureSelect(parent = which_panel, element = p.get('element', 'sig'))
                     selection = gselect.SignatureSelect(parent = which_panel, element = p.get('element', 'sig'))
                     p['wxId'] = [ selection.GetId() ]
                     p['wxId'] = [ selection.GetId() ]
                     selection.Bind(wx.EVT_TEXT, self.OnSetValue)
                     selection.Bind(wx.EVT_TEXT, self.OnSetValue)
+                    selection.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
                     which_sizer.Add(item = selection, proportion = 0,
                     which_sizer.Add(item = selection, proportion = 0,
                                     flag = wx.ADJUST_MINSIZE | wx.BOTTOM | wx.LEFT | wx.RIGHT | wx.TOP | wx.ALIGN_CENTER_VERTICAL,
                                     flag = wx.ADJUST_MINSIZE | wx.BOTTOM | wx.LEFT | wx.RIGHT | wx.TOP | wx.ALIGN_CENTER_VERTICAL,
                                     border = 5)
                                     border = 5)
@@ -1340,6 +1341,7 @@ class CmdPanel(wx.Panel):
                     win.SetValue(value)
                     win.SetValue(value)
                     p['wxId'] = [ win.GetId() ]
                     p['wxId'] = [ win.GetId() ]
                     win.Bind(wx.EVT_TEXT, self.OnSetValue)
                     win.Bind(wx.EVT_TEXT, self.OnSetValue)
+                    win.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
                     which_sizer.Add(item = win, proportion = 0,
                     which_sizer.Add(item = win, proportion = 0,
                                     flag = wx.ADJUST_MINSIZE | wx.BOTTOM | wx.LEFT | wx.RIGHT | wx.TOP | wx.ALIGN_CENTER_VERTICAL,
                                     flag = wx.ADJUST_MINSIZE | wx.BOTTOM | wx.LEFT | wx.RIGHT | wx.TOP | wx.ALIGN_CENTER_VERTICAL,
                                     border = 5)
                                     border = 5)