[GRASS-SVN] r54046 - in grass/trunk/gui/wxpython: lmgr xml
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 26 03:48:06 PST 2012
Author: lucadelu
Date: 2012-11-26 03:48:05 -0800 (Mon, 26 Nov 2012)
New Revision: 54046
Modified:
grass/trunk/gui/wxpython/lmgr/frame.py
grass/trunk/gui/wxpython/xml/menudata.xml
Log:
add rlisetup to gui
Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py 2012-11-26 11:31:41 UTC (rev 54045)
+++ grass/trunk/gui/wxpython/lmgr/frame.py 2012-11-26 11:48:05 UTC (rev 54046)
@@ -73,6 +73,7 @@
from gcp.manager import GCPWizard
from nviz.main import haveNviz
from mapswipe.frame import SwipeMapFrame
+from rlisetup.frame import RLiSetupFrame
class GMFrame(wx.Frame):
"""!Layer Manager frame with notebook widget for controlling GRASS
@@ -447,6 +448,13 @@
win.CentreOnScreen()
win.Show()
+ def OnRLiSetup(self, event):
+ """!Launch r.li Setup"""
+ win = RLiSetupFrame(parent = self)
+ win.CentreOnScreen()
+
+ win.Show()
+
def OnDone(self, cmd, returncode):
"""Command execution finised"""
if hasattr(self, "model"):
Modified: grass/trunk/gui/wxpython/xml/menudata.xml
===================================================================
--- grass/trunk/gui/wxpython/xml/menudata.xml 2012-11-26 11:31:41 UTC (rev 54045)
+++ grass/trunk/gui/wxpython/xml/menudata.xml 2012-11-26 11:48:05 UTC (rev 54046)
@@ -1547,8 +1547,7 @@
<label>Set up sampling and analysis framework</label>
<help>Configuration editor for r.li.'index'</help>
<keywords>raster,landscape structure analysis</keywords>
- <handler>OnMenuCmd</handler>
- <command>r.li.setup</command>
+ <handler>OnRLiSetup</handler>
</menuitem>
<separator />
<menuitem>
More information about the grass-commit
mailing list