[GRASS-SVN] r48061 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 2 09:21:30 EDT 2011
Author: mmetz
Date: 2011-09-02 06:21:30 -0700 (Fri, 02 Sep 2011)
New Revision: 48061
Modified:
grass/trunk/gui/wxpython/gui_modules/render.py
Log:
wxGUI: busy cursor for AddLayer
Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py 2011-09-02 10:46:41 UTC (rev 48060)
+++ grass/trunk/gui/wxpython/gui_modules/render.py 2011-09-02 13:21:30 UTC (rev 48061)
@@ -1026,6 +1026,7 @@
@return new layer on success
@return None on failure
"""
+ wx.BeginBusyCursor()
# l_opacity must be <0;1>
if l_opacity < 0: l_opacity = 0
elif l_opacity > 1: l_opacity = 1
@@ -1043,6 +1044,8 @@
if not layer.Render():
raise gcmd.GException(_("Unable to render map layer <%s>.") % name)
+ wx.EndBusyCursor()
+
return layer
def DeleteLayer(self, layer, overlay = False):
More information about the grass-commit
mailing list