[pygtk] rc file woes

Chris Cole ccole2 at mix.wvu.edu
Tue Nov 27 07:58:00 WST 2007


> Great! After reading the API a bit more things seem a little clearer, 
> thanks for the nudge in the right direction. It seems however that I 
> can't set the background color of a container, for example a GtkHBox or 
> GtkVBox? Is this the case?

Nevermind, I found the answer in the gtk.Widget API page...some widgets
don't have an associated gtk.gdk.Window, and in this case, setting the 
style won't work, you need to add them inside a gtk.eventbox and set the
desired style for the eventbox:

http://www.moeraki.com/pygtkreference/pygtk2reference/class-gtkwidget.html#method-gtkwidget--modify-bg

Chris


More information about the pygtk mailing list