[pygtk] GTK guru's, What does this PyGTK error mean?
Christian Robottom Reis
kiko at async.com.br
Sat Jul 3 06:51:40 WST 2004
On Fri, Jul 02, 2004 at 03:44:52PM -0700, Chris Irish wrote:
> (Liberty_Reports_copy2.py:511): Gtk-CRITICAL **: file gtkbox.c: line
> 373 (gtk_box_pack_start): assertion `child->parent == NULL' failed
> The program works fine, it doesn't crash, but I need to get rid of this
> before it can ever be deployed. I don't understand what GTK is trying
> to say, am I destroying somethings parent before it and it doesn't like
> that or what? Any help would be greatly appreciated.
You're adding (or pack_start()ing) to a Box (such as VBox or HBox) a
widget which already has a parent. This add will fail and GTK+ will
raise this error in runtime.
To fix the error, find out what widget you're adding where, and make
sure it's not being added without first being remove()d from wherever it
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331
More information about the pygtk