[GRASS-SVN] r38411 - grass-addons/vector/v.krige
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 14 06:53:01 EDT 2009
Author: aghisla
Date: 2009-07-14 06:53:00 -0400 (Tue, 14 Jul 2009)
New Revision: 38411
Modified:
grass-addons/vector/v.krige/v.krige.py
Log:
shift focus on Command Output - uneffective, need to thread controller.Run or better reuse menuform code
Modified: grass-addons/vector/v.krige/v.krige.py
===================================================================
--- grass-addons/vector/v.krige/v.krige.py 2009-07-14 09:02:25 UTC (rev 38410)
+++ grass-addons/vector/v.krige/v.krige.py 2009-07-14 10:53:00 UTC (rev 38411)
@@ -123,6 +123,7 @@
globalvar.CheckForWx()
import gselect
import goutput
+import menuform
import wx
import wx.lib.flatnotebook as FN
@@ -267,10 +268,10 @@
self.CreatePage(package = Rpackage)
## Command output. From menuform module, cmdPanel class
- self.goutput = goutput.GMConsole(parent=self, margin=True,
+ self.goutput = goutput.GMConsole(parent=self, margin=False,
pageid=self.RPackagesBook.GetPageCount())
self.goutputId = self.RPackagesBook.GetPageCount()
- self.outpage = self.RPackagesBook.AddPage(self.goutput, text=_("Command output") )
+ self.outpage = self.RPackagesBook.AddPage(self.goutput, text=_("Command output"))
self.RPackagesBook.SetSelection(0)
KrigingSizer.Add(self.RPackagesBook, proportion=1, flag=wx.EXPAND)
@@ -351,6 +352,11 @@
# pages, but only the selected one will be executed when Run is pressed.
SelectedPanel = self.RPackagesBook.GetCurrentPage()
+ # shift focus on Command output, if needed
+ if self.RPackagesBook.GetSelection() != self.goutputId:
+ self.RPackagesBook.SetSelection(self.goutputId)
+ # see how to reuse menuform's code
+
self.Controller.Run(input = self.InputDataMap.GetValue(),
column = self.InputDataColumn.GetValue(),
output = self.OutputMapName.GetValue(),
More information about the grass-commit
mailing list