[pygtk] gtk.Widget.modify_bg and gtk.Label
Johan Dahlin
jdahlin at async.com.br
Fri Jan 27 03:16:41 WST 2006
> I'm trying to change the background of a gtk.Label. The docs state the
> following:
> So... I make my Label a child of an EventBox and then use modify_bg on
> the Label. It doesn't work. I tried it on the EventBox too, just to be
> sure. No luck. What am I missing here?
A label will never have it's own window, even if you add it to the eventbox.
But, if you add it to an eventbox you should be able to modify the
background of the eventbox itself.
Johan
More information about the pygtk
mailing list