[GRASS-SVN] r41424 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Mar 13 12:24:28 EST 2010
Author: martinl
Date: 2010-03-13 12:24:27 -0500 (Sat, 13 Mar 2010)
New Revision: 41424
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
Log:
wxGUI: track default column name
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py 2010-03-13 17:17:38 UTC (rev 41423)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py 2010-03-13 17:24:27 UTC (rev 41424)
@@ -631,6 +631,7 @@
style |= wx.CB_READONLY
else:
style = wx.CB_READONLY
+ self.defaultValue = value
super(ColumnSelect, self).__init__(parent, id, value = value, choices = choices, size = size,
**kwargs)
@@ -667,7 +668,7 @@
columns = []
self.SetItems(columns)
- self.SetValue('')
+ self.SetValue(self.defaultValue)
def InsertTableColumns(self, table, driver=None, database=None):
"""!Insert table columns"""
@@ -683,6 +684,7 @@
columns = ret.splitlines()
self.SetItems(columns)
+ self.SetValue(self.defaultValue)
class LocationSelect(wx.ComboBox):
"""!Widget for selecting GRASS location"""
More information about the grass-commit
mailing list