[GRASS-SVN] r53443 - in grass/trunk/gui/wxpython: lmgr mapdisp xml
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 17 10:00:39 PDT 2012
Author: martinl
Date: 2012-10-17 10:00:39 -0700 (Wed, 17 Oct 2012)
New Revision: 53443
Modified:
grass/trunk/gui/wxpython/lmgr/frame.py
grass/trunk/gui/wxpython/mapdisp/frame.py
grass/trunk/gui/wxpython/xml/menudata.xml
Log:
wxGUI: experimental Animation tool added to the menu
Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py 2012-10-17 16:52:21 UTC (rev 53442)
+++ grass/trunk/gui/wxpython/lmgr/frame.py 2012-10-17 17:00:39 UTC (rev 53443)
@@ -1282,7 +1282,22 @@
win.CentreOnScreen()
win.Show()
+
+ def OnAnimationTool(self, event):
+ """!Launch Animation tool
+ """
+ try:
+ from animation.frame import AnimationFrame
+ except ImportError:
+ GError(_("Extension <%s> not available, run '%s' to install it.") % \
+ ('wx.animation', 'g.extension -s extension=wx.animation'),
+ parent = self, showTraceback = False)
+ return
+ frame = AnimationFrame(parent = self)
+ frame.CentreOnScreen()
+ frame.Show()
+
def OnHistogram(self, event):
"""!Init histogram display canvas and tools
"""
Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py 2012-10-17 16:52:21 UTC (rev 53442)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py 2012-10-17 17:00:39 UTC (rev 53443)
@@ -1358,15 +1358,15 @@
try:
from vnet.dialogs import VNETDialog
except ImportError:
- GError(_("wx.vnet not available, run '%s' to install this "
- "extension") % 'g.extension -s extension=wx.vnet',
- parent = self)
+ GError(_("Extension <%s> not available, run '%s' to install it.") % \
+ ('wx.vnet', 'g.extension -s extension=wx.vnet'),
+ parent = self, showTraceback = False)
return
self.dialogs['vnet'] = VNETDialog(parent = self)
self.dialogs['vnet'].CenterOnScreen()
self.dialogs['vnet'].Show()
-
+
def SwitchTool(self, toolbar, event):
"""!Calls UpdateTools to manage connected toolbars"""
self.UpdateTools(event)
Modified: grass/trunk/gui/wxpython/xml/menudata.xml
===================================================================
--- grass/trunk/gui/wxpython/xml/menudata.xml 2012-10-17 16:52:21 UTC (rev 53442)
+++ grass/trunk/gui/wxpython/xml/menudata.xml 2012-10-17 17:00:39 UTC (rev 53443)
@@ -726,6 +726,12 @@
<handler>OnMenuCmd</handler>
<command>m.nviz.image</command>
</menuitem>
+ <menuitem>
+ <label>Animation tool (experimental - addons)</label>
+ <help>Launch animation tool.</help>
+ <keywords>visualization,raster,animation</keywords>
+ <handler>OnAnimationTool</handler>
+ </menuitem>
<separator />
<menuitem>
<label>Bearing/distance to coordinates</label>
More information about the grass-commit
mailing list