[GRASS-SVN] r38627 - grass-addons/vector/v.krige
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 6 06:12:46 EDT 2009
Author: aghisla
Date: 2009-08-06 06:12:45 -0400 (Thu, 06 Aug 2009)
New Revision: 38627
Modified:
grass-addons/vector/v.krige/v.krige.py
Log:
if Command output tab is selected and Run is pressed, an error is raised and execution halted
Modified: grass-addons/vector/v.krige/v.krige.py
===================================================================
--- grass-addons/vector/v.krige/v.krige.py 2009-08-06 08:48:41 UTC (rev 38626)
+++ grass-addons/vector/v.krige/v.krige.py 2009-08-06 10:12:45 UTC (rev 38627)
@@ -374,6 +374,10 @@
# pages, but only the selected one will be executed when Run is pressed.
SelectedPanel = self.RPackagesBook.GetCurrentPage()
+ if self.RPackagesBook.GetPageText(self.RPackagesBook.GetSelection()) == 'Command output':
+ self.goutput.WriteError("No parameters for running. Please select \"gstat\" tab, check parameters and re-run.")
+ return False # no break invoked by above function
+
# mount command string as it would have been written on CLI
command = ["v.krige.py", "input=" + self.InputDataMap.GetValue(),
"column=" + self.InputDataColumn.GetValue(),
More information about the grass-commit
mailing list