traceback with warning/error messages

Jarek Zgoda jzgoda at
Sat Jul 17 18:58:34 CEST 2004

Jean Brouwers <JBrouwersAtProphICyDotCom at> pisze:

> Sporadically, a message like this one shows up in our wxPython
> application:
> ( Gtk-WARNING **: gtk_menu_attach_to_widget(): menu
> already attached to GtkMenuItem
> Is possible but tedious to find the cause of the message by inserting
> print statements.  Is there an easier way, e.g. a traceback in Python
> when lower level messages occur?

I see similar messages generated by (pure C++) wxWidgets applications,
such as poedit, when running on Linux, so I think it's a matter of bugs
in GTK backend implementation in wxWidgets, that propagate to wxPython.

> PS) This is wxPython and Python 2.3.2 on Linux.

You will see this in 2.5.1 even more often.

Jarek Zgoda

More information about the Python-list mailing list