Did you already tried wxYield()?
Ricardo
Well, read some more and found that the ProcessEvent() that I was using
to post the message is not recommended. AddPendingEvent() recommended
instead. I was using ProcessEvent() to sync the GUI to the callbacks,
and it works on WinXP, but not on Linux. When I switched over to
AddPendingEvent() just now, that took care of the "attempt to install
idle handler twice" problem. So I'll re-evaluate whether I truly need
the GUI sync'ed that closely to the callbacks.
However, the StaticText controls are still not being refreshed. I can
call Refresh() explicitly on them now w/o the above error, but they
still are not rendered.
Yield() results in the "calling Yield() recursively" error since my
CORBA callbacks are rapid.
Tried ProcessIdle() w/o success.
Still working on it...
Thanks, Ricardo.
Bruce
ยทยทยท
-----Original Message-----
From: Ricardo Pedroso [mailto:ricardo.pedroso@netvisao.pt]
Sent: Monday, September 26, 2005 3:22 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Please help on wxPython/Gtk issue
On Mon, 2005-09-26 at 13:06 -0600, brucedickey@micron.com wrote:
Hi All,
I have a rather large app that was developed on Windows and worked
fine. After moving over to Red Hat, I see an issue, and it's hard to
know exactly in what area. I get a CORBA callback, post a msg to the
GUI and in the handler update a TextCtrl. The new text is displayed,
somethines I get a GTK error saying that it attempted to install an
idle handler twice.StaticText controls I am attempting to update are not refreshed on the
GUI. I tried added an explicit Refresh() to them but got the above
"idle handle twice" error. They are however being set because I can
read back the new text via GetLabel().