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
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, ti...@probo.com Providenza & Boekelheide, Inc.
I was afraid that
was the situation.
Thanks for looking,
Johnf
--
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 wxpython-user...@googlegroups.com.
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.
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
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/ab70665a-978b-a7b1-551b-75126b66a2cc%40gmail.com.