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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 1 11:55:58 EDT 2011


Author: neteler
Date: 2011-09-01 08:55:58 -0700 (Thu, 01 Sep 2011)
New Revision: 48039

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
Log:
show 'busy' mouse cursor while rendering

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2011-09-01 15:54:02 UTC (rev 48038)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2011-09-01 15:55:58 UTC (rev 48039)
@@ -864,7 +864,8 @@
         maps = []
         masks = []
         opacities = []
-        
+
+        wx.BeginBusyCursor()
         # use external gisrc if defined
         gisrc_orig = os.getenv("GISRC")
         if self.gisrc:
@@ -928,6 +929,7 @@
             
             if ret != 0:
                 print >> sys.stderr, _("ERROR: Rendering failed. Details: %s") % msg
+                wx.EndBusyCursor()
                 return None
             
             Debug.msg (3, "Map.Render() force=%s file=%s" % (force, self.mapfile))
@@ -936,6 +938,7 @@
         if self.gisrc:
             os.environ["GISRC"] = gisrc_orig
         
+        wx.EndBusyCursor()
         if not maps:
             return None
         



More information about the grass-commit mailing list