Andrea Gavana wrote:
Hello NG,
Hello Ron,
I've got a gauge control in my app that is not updating when run on
Linux and OSX, however it does update correctly when run on Win32. Is
this a known issue or does something extra have to be done on these
other os'? BTW I am calling wx.Window.Update() after each
wx.Gauge.SetValue() just in case.have you tried something like:
wx.Yield()
(or its friends wx.YieldIfNeeded(), wx.SafeYield())
when you call SetValue()? This may work, I think.
I may be wrong here, but shouldn't this issue (like many others) be fixed at the wxWidgets level? I mean, if all Unix/Linux platforms behave in this way (differently from Win32), it would probably be a good idea to insert a call to wxYield() in the wxWidget code... If not all the Unix/Linux machines behave the same or if this wxYield() will break something else, forget the post
Possibly, but we tend to shy away from having to use wxYield inside wxWidgets in order to prevent nested yield calls if the user code is also calling wxYield. (It's a tearing of the fabric of the universe kind of problem... <wink>)
That doesn't mean that there isn't some other way to fix it though. A bug report could be helpful here.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!