[GRASS-SVN] r66625 - grass/trunk/gui/wxpython/wxplot
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 27 19:34:02 PDT 2015
Author: annakrat
Date: 2015-10-27 19:34:02 -0700 (Tue, 27 Oct 2015)
New Revision: 66625
Modified:
grass/trunk/gui/wxpython/wxplot/histogram.py
grass/trunk/gui/wxpython/wxplot/profile.py
grass/trunk/gui/wxpython/wxplot/scatter.py
Log:
wxGUI: add waiting cursor for wxplot tools
Modified: grass/trunk/gui/wxpython/wxplot/histogram.py
===================================================================
--- grass/trunk/gui/wxpython/wxplot/histogram.py 2015-10-27 17:41:34 UTC (rev 66624)
+++ grass/trunk/gui/wxpython/wxplot/histogram.py 2015-10-28 02:34:02 UTC (rev 66625)
@@ -84,9 +84,12 @@
pass
self.SetGraphStyle()
+ wx.BeginBusyCursor()
+ wx.SafeYield()
self.SetupHistogram()
p = self.CreatePlotList()
self.DrawPlot(p)
+ wx.EndBusyCursor()
def OnSelectRaster(self, event):
"""Select raster map(s) to profile
Modified: grass/trunk/gui/wxpython/wxplot/profile.py
===================================================================
--- grass/trunk/gui/wxpython/wxplot/profile.py 2015-10-27 17:41:34 UTC (rev 66624)
+++ grass/trunk/gui/wxpython/wxplot/profile.py 2015-10-28 02:34:02 UTC (rev 66625)
@@ -284,10 +284,12 @@
return
self.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
-
+ wx.BeginBusyCursor()
+ wx.SafeYield()
self.SetupProfile()
p = self.CreatePlotList()
self.DrawPlot(p)
+ wx.EndBusyCursor()
def CreatePlotList(self):
"""Create a plot data list from transect datalist and
Modified: grass/trunk/gui/wxpython/wxplot/scatter.py
===================================================================
--- grass/trunk/gui/wxpython/wxplot/scatter.py 2015-10-27 17:41:34 UTC (rev 66624)
+++ grass/trunk/gui/wxpython/wxplot/scatter.py 2015-10-28 02:34:02 UTC (rev 66625)
@@ -79,11 +79,15 @@
"""
self.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
self.SetGraphStyle()
+ wx.BeginBusyCursor()
+ wx.SafeYield()
self.SetupScatterplot()
p = self.CreatePlotList()
if p:
self.DrawPlot(p)
+ wx.EndBusyCursor()
else:
+ wx.EndBusyCursor()
GMessage(_("Nothing to plot."), parent = self)
def OnSelectRaster(self, event):
More information about the grass-commit
mailing list