Parcourir la source

wxGUI: SubGroupSelect widget should be editable

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50707 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa il y a 13 ans
Parent
commit
e501c341f7
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 0
      gui/wxpython/gui_core/forms.py
  2. 1 1
      gui/wxpython/gui_core/gselect.py

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

@@ -1228,6 +1228,7 @@ class CmdPanel(wx.Panel):
                     selection = gselect.SubGroupSelect(parent = which_panel)
                     selection = gselect.SubGroupSelect(parent = which_panel)
                     p['wxId'] = [ selection.GetId() ]
                     p['wxId'] = [ selection.GetId() ]
                     selection.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
                     selection.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
+                    selection.Bind(wx.EVT_TEXT,     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)

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

@@ -979,7 +979,7 @@ class SubGroupSelect(wx.ComboBox):
     def __init__(self, parent, id = wx.ID_ANY, size = globalvar.DIALOG_GSELECT_SIZE, 
     def __init__(self, parent, id = wx.ID_ANY, size = globalvar.DIALOG_GSELECT_SIZE, 
                  **kwargs):
                  **kwargs):
         super(SubGroupSelect, self).__init__(parent, id, size = size, 
         super(SubGroupSelect, self).__init__(parent, id, size = size, 
-                                             style = wx.CB_READONLY, **kwargs)
+                                             **kwargs)
         self.SetName("SubGroupSelect")
         self.SetName("SubGroupSelect")
 
 
     def Insert(self, group):
     def Insert(self, group):