[GRASS-SVN] r64564 - grass/trunk/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 11 08:52:33 PST 2015
Author: annakrat
Date: 2015-02-11 08:52:33 -0800 (Wed, 11 Feb 2015)
New Revision: 64564
Modified:
grass/trunk/gui/wxpython/nviz/mapwindow.py
Log:
wxGUI/nviz: do not use progress bar on mac, causes recursion for unknown reason
Modified: grass/trunk/gui/wxpython/nviz/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/nviz/mapwindow.py 2015-02-11 15:17:29 UTC (rev 64563)
+++ grass/trunk/gui/wxpython/nviz/mapwindow.py 2015-02-11 16:52:33 UTC (rev 64564)
@@ -1168,12 +1168,14 @@
self.resize = False
if self.render['quick'] is False:
- self.parent.GetProgressBar().Show()
- self.parent.GetProgressBar().SetRange(2)
- self.parent.GetProgressBar().SetValue(0)
-
+ if sys.platform != 'darwin': # causes recursion for some reason on Mac
+ self.parent.GetProgressBar().Show()
+ self.parent.GetProgressBar().SetRange(2)
+ self.parent.GetProgressBar().SetValue(0)
+
if self.render['quick'] is False:
- self.parent.GetProgressBar().SetValue(1)
+ if sys.platform != 'darwin':
+ self.parent.GetProgressBar().SetValue(1)
self._display.Draw(False, -1)
if self.saveHistory:
self.ViewHistory(view = self.view, iview = self.iview)
@@ -1209,10 +1211,11 @@
stop = time.clock()
if self.render['quick'] is False:
- self.parent.GetProgressBar().SetValue(2)
- # hide process bar
- self.parent.GetProgressBar().Hide()
-
+ if sys.platform != 'darwin':
+ self.parent.GetProgressBar().SetValue(2)
+ # hide process bar
+ self.parent.GetProgressBar().Hide()
+
Debug.msg(3, "GLWindow.UpdateMap(): quick = %d, -> time = %g" % \
(self.render['quick'], (stop-start)))
More information about the grass-commit
mailing list