[GRASS-SVN] r46791 - in grass/trunk/gui/wxpython: . xml
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jun 26 12:35:35 EDT 2011
Author: martinl
Date: 2011-06-26 09:35:35 -0700 (Sun, 26 Jun 2011)
New Revision: 46791
Modified:
grass/trunk/gui/wxpython/wxgui.py
grass/trunk/gui/wxpython/xml/menudata.xml
Log:
wxGUI: update for GSoC testing (wx.stream)
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2011-06-26 16:29:22 UTC (rev 46790)
+++ grass/trunk/gui/wxpython/wxgui.py 2011-06-26 16:35:35 UTC (rev 46791)
@@ -332,7 +332,23 @@
win.CentreOnScreen()
win.Show()
+
+ def OnRStream(self, event):
+ """!GSoC's r.stream.* interface for testing
+ """
+ try:
+ from gui_modules import rstream
+ except:
+ gcmd.GError(parent = self.parent,
+ message = _("RStream Utility is not available. You can install it by %s") % \
+ 'g.extension -s extension=wx.stream')
+ return
+ win = rstream.RStreamFrame(parent = self)
+ win.CentreOnScreen()
+
+ win.Show()
+
def OnDone(self, returncode):
"""Command execution finised"""
if hasattr(self, "model"):
Modified: grass/trunk/gui/wxpython/xml/menudata.xml
===================================================================
--- grass/trunk/gui/wxpython/xml/menudata.xml 2011-06-26 16:29:22 UTC (rev 46790)
+++ grass/trunk/gui/wxpython/xml/menudata.xml 2011-06-26 16:35:35 UTC (rev 46791)
@@ -738,6 +738,18 @@
<command>ps.map</command>
</menuitem>
<separator />
+ <menu>
+ <label>GSoC testing</label>
+ <items>
+ <menuitem>
+ <label>RStream</label>
+ <help>GUI for hydrological modelling (r.stream.*)</help>
+ <keywords>raster,hydrology</keywords>
+ <handler>OnRStream</handler>
+ </menuitem>
+ </items>
+ </menu>
+ <separator />
<menuitem>
<label>Launch script</label>
<help>Launches script file.</help>
More information about the grass-commit
mailing list