[GRASS-SVN] r41422 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 13 12:12:47 EST 2010


Author: martinl
Date: 2010-03-13 12:12:47 -0500 (Sat, 13 Mar 2010)
New Revision: 41422

Modified:
   grass/trunk/gui/wxpython/gui_modules/gselect.py
Log:
wxGUI: track default column name


Modified: grass/trunk/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gselect.py	2010-03-13 17:08:16 UTC (rev 41421)
+++ grass/trunk/gui/wxpython/gui_modules/gselect.py	2010-03-13 17:12:47 UTC (rev 41422)
@@ -665,6 +665,7 @@
                  id=wx.ID_ANY, value='', pos=wx.DefaultPosition,
                  size=globalvar.DIALOG_COMBOBOX_SIZE, vector=None,
                  layer=1, choices=[]):
+        self.defaultValue = value
         
         super(ColumnSelect, self).__init__(parent, id, value, pos, size, choices)
         
@@ -700,7 +701,7 @@
             columns = []
 
         self.SetItems(columns)
-        self.SetValue('')
+        self.SetValue(self.defaultValue)
     
     def InsertTableColumns(self, table, driver=None, database=None):
         """!Insert table columns"""
@@ -716,6 +717,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