[GRASS-SVN] r38186 - grass-addons/vector/v.krige
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 3 08:26:35 EDT 2009
Author: aghisla
Date: 2009-07-03 08:26:34 -0400 (Fri, 03 Jul 2009)
New Revision: 38186
Modified:
grass-addons/vector/v.krige/v.krige.py
Log:
updates the columnSelect field adding the first valid column name instead of leaving the field blank
Modified: grass-addons/vector/v.krige/v.krige.py
===================================================================
--- grass-addons/vector/v.krige/v.krige.py 2009-07-03 11:46:12 UTC (rev 38185)
+++ grass-addons/vector/v.krige/v.krige.py 2009-07-03 12:26:34 UTC (rev 38186)
@@ -80,6 +80,7 @@
flexSizer.Add(item = wx.StaticText(self, id=wx.ID_ANY, label=_("Column:")),
flag=wx.ALIGN_CENTER_VERTICAL)
self.InputDataColumn = gselect.ColumnSelect(self, id=wx.ID_ANY)
+ self.InputDataColumn.SetSelection(0)
flexSizer.Add(item = self.InputDataColumn)
self.InputDataMap.GetChildren()[0].Bind(wx.EVT_TEXT, self.OnInputDataChanged)
@@ -154,6 +155,7 @@
self.InputDataColumn.InsertColumns(vector = MapName,
layer = 1, excludeKey = True,
type = ['integer', 'double precision'])
+ self.InputDataColumn.SetSelection(0)
self.OutputMapName.SetValue(MapName.split("@")[0]+"_kriging")
def OnRunButton(self,event):
More information about the grass-commit
mailing list