Explorar el Código

wxGUI: remove readonly style from r.proj combobox, see https://trac.osgeo.org/grass/ticket/2993

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69444 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová hace 8 años
padre
commit
cd3263f5aa
Se han modificado 2 ficheros con 4 adiciones y 6 borrados
  1. 2 2
      gui/wxpython/gui_core/forms.py
  2. 2 4
      gui/wxpython/gui_core/gselect.py

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

@@ -1670,8 +1670,8 @@ class CmdPanel(wx.Panel):
                         elif prompt == 'location':
                             win = gselect.LocationSelect(parent=which_panel,
                                                          value=value)
-                            win.Bind(wx.EVT_COMBOBOX, self.OnUpdateSelection)
-                            win.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
+                            win.Bind(wx.EVT_TEXT, self.OnUpdateSelection)
+                            win.Bind(wx.EVT_TEXT, self.OnSetValue)
 
                         elif prompt == 'mapset':
                             if p.get('age', 'old') == 'old':

+ 2 - 4
gui/wxpython/gui_core/gselect.py

@@ -1184,8 +1184,7 @@ class LocationSelect(wx.ComboBox):
     def __init__(
             self, parent, id=wx.ID_ANY, size=globalvar.DIALOG_COMBOBOX_SIZE,
             gisdbase=None, **kwargs):
-        super(LocationSelect, self).__init__(parent, id, size=size,
-                                             style=wx.CB_READONLY, **kwargs)
+        super(LocationSelect, self).__init__(parent, id, size=size, **kwargs)
         self.SetName("LocationSelect")
 
         if not gisdbase:
@@ -2231,8 +2230,7 @@ class ProjSelect(wx.ComboBox):
 
     def __init__(self, parent, isRaster, id=wx.ID_ANY,
                  size=globalvar.DIALOG_COMBOBOX_SIZE, **kwargs):
-        super(ProjSelect, self).__init__(parent, id, size=size,
-                                         style=wx.CB_READONLY, **kwargs)
+        super(ProjSelect, self).__init__(parent, id, size=size, **kwargs)
         self.SetName("ProjSelect")
         self.isRaster = isRaster