Reputation: 445
I got this warnings on excuting the line :
self.builder.add_from_file(self.glade_file)
GtkWarning: IA__gtk_widget_set_size_request: assertion `GTK_IS_WIDGET (widget)' failed
self.builder.add_from_file(self.glade_file)
GtkWarning: IA__gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
self.builder.add_from_file(self.glade_file)
GtkWarning: IA__gdk_window_get_width: assertion `GDK_IS_WINDOW (window)' failed
self.builder.add_from_file(self.glade_file)
GtkWarning: IA__gdk_window_get_height: assertion `GDK_IS_WINDOW (window)' failed
self.builder.add_from_file(self.glade_file)
GtkWarning: IA__gtk_widget_reparent: assertion `widget->parent != NULL' failed
self.builder.add_from_file(self.glade_file)
All articles on the web talking about warnings similar to them had missed one step, which I need it seriously.
Where is the error?? my glade file contain over 200 of objects,How to detect the exact object of warning to correct it ?? Which line is the source of this warnings?
Upvotes: 0
Views: 431
Reputation: 11454
For C code, you define G_DEBUG=fatal-warnings, and use a debugger to check what makes it break. Not sure what is the pythonic way, though…
Upvotes: 2