[GRASS-SVN] r48038 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 1 11:54:02 EDT 2011


Author: neteler
Date: 2011-09-01 08:54:02 -0700 (Thu, 01 Sep 2011)
New Revision: 48038

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

Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py	2011-09-01 15:47:31 UTC (rev 48037)
+++ grass/trunk/gui/wxpython/gui_modules/render.py	2011-09-01 15:54:02 UTC (rev 48038)
@@ -933,6 +933,7 @@
         
         @return name of file with rendered image or None
         """
+        wx.BeginBusyCursor()
         # use external gisrc if defined
         gisrc_orig = os.getenv("GISRC")
         if self.gisrc:
@@ -987,6 +988,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))
@@ -1001,6 +1003,7 @@
         if self.gisrc:
             os.environ["GISRC"] = gisrc_orig
         
+        wx.EndBusyCursor()
         if not maps:
             return None
         



More information about the grass-commit mailing list