[GRASS-SVN] r69444 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 11 18:07:45 PDT 2016


Author: annakrat
Date: 2016-09-11 18:07:45 -0700 (Sun, 11 Sep 2016)
New Revision: 69444

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
   grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: remove readonly style from r.proj combobox, see #2993

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2016-09-12 00:49:05 UTC (rev 69443)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2016-09-12 01:07:45 UTC (rev 69444)
@@ -1670,8 +1670,8 @@
                         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':

Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py	2016-09-12 00:49:05 UTC (rev 69443)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py	2016-09-12 01:07:45 UTC (rev 69444)
@@ -1184,8 +1184,7 @@
     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 @@
 
     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
 



More information about the grass-commit mailing list