[GRASS-SVN] r48068 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 2 11:04:10 EDT 2011


Author: mmetz
Date: 2011-09-02 08:04:10 -0700 (Fri, 02 Sep 2011)
New Revision: 48068

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
Log:
wxGUI: busy cursor for AddLayer

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2011-09-02 15:03:02 UTC (rev 48067)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2011-09-02 15:04:10 UTC (rev 48068)
@@ -961,6 +961,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
@@ -978,6 +979,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