[GRASS-dev] wxGUI scatterplot: add wx.BeginBusyCursor and wx.EndBusyCursor

Anna Petrášová kratochanna at gmail.com
Tue Oct 27 08:11:47 PDT 2015


would you mind testing this diff?

On Tue, Oct 27, 2015 at 6:04 AM, Markus Neteler <neteler at osgeo.org> wrote:

> Hi,
>
> when plotting "larger" data (eg two landsat channels  or whatever)
> with the Scatterplot tool, then the calculation starts while not
> showing the cursor busy. The user may assume that the thing is crashed
> while it indeed simply calculates... Then the plot comes up and all is
> fine.
>
> I would like to add
>     wx.BeginBusyCursor()
> ...
>     wx.EndBusyCursor()
>
> somewhere in wxplot/dialogs.py but I don't really know where that's needed.
>
> A few other wxGUI tools may also lack this cursor change.
>
> thanks for hints,
> Markus
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20151027/0c0d50ff/attachment.html>
-------------- next part --------------
Index: wxplot/scatter.py
===================================================================
--- wxplot/scatter.py	(revision 66587)
+++ wxplot/scatter.py	(working copy)
@@ -79,11 +79,14 @@
         """
         self.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
         self.SetGraphStyle()
+        wx.BeginBusyCursor()
         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-dev mailing list