473,480 Members | 5,041 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

traceback with warning/error messages


Sporadically, a message like this one shows up in our wxPython
application:

(main.py:3182): 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?

/Jean Brouwers

PS) This is wxPython 2.4.1.2 and Python 2.3.2 on Linux.
Jul 18 '05 #1
2 2586
Jean Brouwers <JB***********************@no.spam.net> pisze:
Sporadically, a message like this one shows up in our wxPython
application:

(main.py:3182): 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 2.4.1.2 and Python 2.3.2 on Linux.


You will see this in 2.5.1 even more often.

--
Jarek Zgoda
http://jpa.berlios.de/
Jul 18 '05 #2

In our particular case the warning message was not due to a bug in GTK.
The problem was that we were reusing a submenu in more than one popup
menu. But it took a while to reproduce the problem and figure that
out.

It would be very helpful if a Python traceback could be printed along
with an error or warning message from any of the lower levels in
wxPython**. Especially if such messages are going to happen more
often.

/Jean Brouwers

**) For example, instead of just printing the message, raise an
exception instead if some config option or environment variable is set.

In article <cd**********@nemesis.news.tpi.pl>, Jarek Zgoda
<jz****@gazeta.usun.pl> wrote:
Jean Brouwers <JB***********************@no.spam.net> pisze:
Sporadically, a message like this one shows up in our wxPython
application:

(main.py:3182): 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 2.4.1.2 and Python 2.3.2 on Linux.


You will see this in 2.5.1 even more often.

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3037
by: Chuck Cobb | last post by:
I'm doing a CSharp project in VS2005 and I'm getting some strange warning messages. The problem is that the warning messages don't link to anything in my code so they are very difficult to track...
0
2390
by: Manish | last post by:
PHP INI File Setting ------------------------------------------------------------------------------------------------------------------ error_reporting = E_ALL & ~E_NOTICE No warning message are...
5
3629
by: Bob Greschke | last post by:
I want to cause any traceback output from my applications to show up in one of my dialog boxes, instead of in the command or terminal window (between running on Solaris, Linux, OSX and Windows...
6
2252
by: David Mathog | last post by:
Do any of you happen to have links to compendiums (or heaven forbid, an actual manual) which maps compiler warnings and errors to examples of actual code problems? In this case I'm specifically...
0
7041
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6736
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5331
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4772
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4478
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
561
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
178
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.