Hello everybody,
I use a Gauge placed into a StatusBar and the wait mouse cursor to inform the user that my application is working…
Now the Gauge is start to pulse before the blocking function begin and it’s stopped when the blocking function release the controlo flow:
self.MainView.sb.timer2.Start(50)
wx.BeginBusyCursor()
self.foo() #apps is working
wx.EndBusyCursor()
self.MainView.sb.timer2.Stop()
With that I get that only the mouse is waiting rightly, but I did not notice the Gauge that pulse and stop.
Could someone suggest me how it woks?
the self.foo function does not uses thread. Is that the reason?
Hello everybody,
I use a Gauge placed into a StatusBar and the wait mouse cursor to inform the user that my application is working..
Now the Gauge is start to pulse before the blocking function begin and it's stopped when the blocking function release the controlo flow:
self.MainView.sb.timer2.Start(50)
wx.BeginBusyCursor()
self.foo() #apps is working
wx.EndBusyCursor()
self.MainView.sb.timer2.Stop()
With that I get that only the mouse is waiting rightly, but I did not notice the Gauge that pulse and stop.
Could someone suggest me how it woks?
the self.foo function does not uses thread. Is that the reason?
Yes. By blocking the main loop you are preventing events (such as the gauge's EVT_PAINT) from being delivered to all widgets in the app.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!