Please help on wxPython/Gtk issue

Please help on wxPython/Gtk issue

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().

If I run the code that generates the CORBA callbacks repeatedly, eventually I get GTK errors saying BadWindow and BadPixmap. Any tips on what to look for?

I get the nagging feeling that there is something about GTK that I have to do differently compared to wxWidgets, but I came up empty on Google. There were some hits on Google regarding the “idle handler twice” issue, but not enough info.

Anyone run into this? Please attempt to enlighten me :slight_smile:

Red Hat Enterprise Linux WS release 3

wPython 2.3.4

wxWindows 2.4.1

Thanks,

Bruce

Did you already tried wxYield()?

Ricardo

···

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().