[GRASS-SVN] r66642 - grass/branches/releasebranch_7_0/gui/wxpython/wxplot

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 28 09:39:34 PDT 2015


Author: neteler
Date: 2015-10-28 09:39:33 -0700 (Wed, 28 Oct 2015)
New Revision: 66642

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/wxplot/histogram.py
   grass/branches/releasebranch_7_0/gui/wxpython/wxplot/scatter.py
Log:
wxGUI: add waiting cursor for histogram +scatter wxplot tools (trunk, r66625 + r66640)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/wxplot/histogram.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/wxplot/histogram.py	2015-10-28 15:31:29 UTC (rev 66641)
+++ grass/branches/releasebranch_7_0/gui/wxpython/wxplot/histogram.py	2015-10-28 16:39:33 UTC (rev 66642)
@@ -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/branches/releasebranch_7_0/gui/wxpython/wxplot/scatter.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/wxplot/scatter.py	2015-10-28 15:31:29 UTC (rev 66641)
+++ grass/branches/releasebranch_7_0/gui/wxpython/wxplot/scatter.py	2015-10-28 16:39:33 UTC (rev 66642)
@@ -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