is there a way to suppress these warning messages

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

is there a way to suppress these warning messages

johnf

Hi,

I get these messages on OpenSuse 15.1, python 3.6, and wxPython 4.04.  I don't see them on Windows 10 (of course that makes sense since there is not GTK).  The messages appear on the console but DO NOT effect the program from running correctly.  In the past (python 2.7 and wxPython 3.x) I use to get a few of these message but now the list is about 50 - 60 (didn't really count).   So is there a way suppress the messages???  Below is just example of the types of messages that appear.

Johnf

(esStudent.py:25288): Gtk-WARNING **: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)

(esStudent.py:25288): Gtk-WARNING **: Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)

(esStudent.py:25288): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(esStudent.py:25288): Gtk-WARNING **: Negative content width -17 (allocation 1, extents 9x9) while allocating gadget (node entry, owner GtkEntry)

(esStudent.py:25288): Gtk-WARNING **: Negative content width -17 (allocation 1, extents 9x9) while allocating gadget (node entry, owner GtkEntry)

(esStudent.py:25288): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(esStudent.py:25288): Gtk-WARNING **: Negative content height -9 (allocation 1, extents 5x5) while allocating gadget (node button, owner GtkButton)

(esStudent.py:25288): Gtk-WARNING **: Negative content width -17 (allocation 1, extents 9x9) while allocating gadget (node entry, owner GtkEntry)

(esStudent.py:25288): Gtk-WARNING **: Negative content width -17 (allocation 1, extents 9x9) while allocating gadget (node entry, owner GtkEntry)

(esStudent.py:25288): Gtk-WARNING **: Negative content width -17 (allocation 1, extents 9x9) while allocating gadget (node entry, owner GtkEntry)

(esStudent.py:25288): Gtk-WARNING **: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node checkbutton, owner GtkCheckButton)

(esStudent.py:25288): Gtk-WARNING **: for_size smaller than min-size (0 < 18) while measuring gadget (node check, owner GtkCheckButton)

(esStudent.py:25288): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkCheckButton

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/1d00773c-c9f9-2021-f05a-641c027689e9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: is there a way to suppress these warning messages

Tim Roberts
johnf wrote:
I get these messages on OpenSuse 15.1, python 3.6, and wxPython 4.04.  I don't see them on Windows 10 (of course that makes sense since there is not GTK).  The messages appear on the console but DO NOT effect the program from running correctly.  In the past (python 2.7 and wxPython 3.x) I use to get a few of these message but now the list is about 50 - 60 (didn't really count).   So is there a way suppress the messages???

I wish there were.  I have a C++ wxWidgets application that also gets 50 or 60 of these messages on startup.  The app is basically a notebook with about 10 pages, each of which is a moderately complicated dialog.  I SUSPECT that this problem happens while it is building the notebook pages, because the window is not yet visible.  I have tried multiple times to step through this in a debugger (and I am very good at C++ debugging), but I cannot find the root cause.

-- 
Tim Roberts, [hidden email]
Providenza & Boekelheide, Inc.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/5dcfe83c-d3b9-ba52-9565-5c2d96f42a7a%40probo.com.
For more options, visit https://groups.google.com/d/optout.

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: is there a way to suppress these warning messages

johnf

I was afraid that was the situation. 

Thanks for looking,

Johnf

On 7/3/19 6:45 PM, Tim Roberts wrote:
johnf wrote:
I get these messages on OpenSuse 15.1, python 3.6, and wxPython 4.04.  I don't see them on Windows 10 (of course that makes sense since there is not GTK).  The messages appear on the console but DO NOT effect the program from running correctly.  In the past (python 2.7 and wxPython 3.x) I use to get a few of these message but now the list is about 50 - 60 (didn't really count).   So is there a way suppress the messages???

I wish there were.  I have a C++ wxWidgets application that also gets 50 or 60 of these messages on startup.  The app is basically a notebook with about 10 pages, each of which is a moderately complicated dialog.  I SUSPECT that this problem happens while it is building the notebook pages, because the window is not yet visible.  I have tried multiple times to step through this in a debugger (and I am very good at C++ debugging), but I cannot find the root cause.

-- 
Tim Roberts, [hidden email]
Providenza & Boekelheide, Inc.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/5dcfe83c-d3b9-ba52-9565-5c2d96f42a7a%40probo.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/ab70665a-978b-a7b1-551b-75126b66a2cc%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: is there a way to suppress these warning messages

GadgetSteve

One trick that may work that I have seen used in the past is to display the window early, (and incomplete), but not visible, e.g. take a note of the intended screen coordinates then display the incomplete window at a set of coordinates that are outside of the available monitor(s), finish construction & layout then move to the saved coordinates, (ideally ensuring that they are all within the currently available monitor(s)).

 

I don’t know for sure that this will help but it could be worth a try.

 

Steve

 

From: [hidden email] <[hidden email]> On Behalf Of johnf
Sent: 04 July 2019 03:34
To: [hidden email]
Subject: Re: [wxPython-users] is there a way to suppress these warning messages

 

I was afraid that was the situation. 

Thanks for looking,

Johnf

On 7/3/19 6:45 PM, Tim Roberts wrote:

johnf wrote:

I get these messages on OpenSuse 15.1, python 3.6, and wxPython 4.04.  I don't see them on Windows 10 (of course that makes sense since there is not GTK).  The messages appear on the console but DO NOT effect the program from running correctly.  In the past (python 2.7 and wxPython 3.x) I use to get a few of these message but now the list is about 50 - 60 (didn't really count).   So is there a way suppress the messages???

I wish there were.  I have a C++ wxWidgets application that also gets 50 or 60 of these messages on startup.  The app is basically a notebook with about 10 pages, each of which is a moderately complicated dialog.  I SUSPECT that this problem happens while it is building the notebook pages, because the window is not yet visible.  I have tried multiple times to step through this in a debugger (and I am very good at C++ debugging), but I cannot find the root cause.

-- 
Tim Roberts, [hidden email]
Providenza & Boekelheide, Inc.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/5dcfe83c-d3b9-ba52-9565-5c2d96f42a7a%40probo.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/ab70665a-978b-a7b1-551b-75126b66a2cc%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/VI1PR03MB4479E339E889CBAECA07BBEE9BFA0%40VI1PR03MB4479.eurprd03.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.