[GRASS-SVN] r55891 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 18 04:55:06 PDT 2013
Author: turek
Date: 2013-04-18 04:55:05 -0700 (Thu, 18 Apr 2013)
New Revision: 55891
Modified:
grass/trunk/gui/wxpython/gui_core/forms.py
grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
synchronize vector map select, layer select and column select
Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py 2013-04-18 11:52:48 UTC (rev 55890)
+++ grass/trunk/gui/wxpython/gui_core/forms.py 2013-04-18 11:55:05 UTC (rev 55891)
@@ -1624,9 +1624,10 @@
# set wxId-bindings
if pMap:
- pMap['wxId-bind'] = copy.copy(pColumnIds)
+ pMap['wxId-bind'] = []
if pLayer:
pMap['wxId-bind'] += pLayerIds
+ pMap['wxId-bind'] += copy.copy(pColumnIds)
if pLayer:
for p in pLayer:
p['wxId-bind'] = copy.copy(pColumnIds)
Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py 2013-04-18 11:52:48 UTC (rev 55890)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py 2013-04-18 11:55:05 UTC (rev 55891)
@@ -851,7 +851,14 @@
if len(layers) > 0:
self.SetItems(layers)
-
+ self.SetValue(layers[0])
+ else:
+ self.Clear()
+ self.SetValue("")
+
+ if self.default:
+ self.SetValue(self.default)
+
class DriverSelect(wx.ComboBox):
"""!Creates combo box for selecting database driver.
"""
More information about the grass-commit
mailing list