[pygtk] gtk.Widget.modify_bg and gtk.Label
John Sigurdson
johns at ilm.com
Fri Jan 27 03:52:08 WST 2006
Strange. That was my second hunch and I tried it earlier, but I must
have done something wrong. It's working now.
Thanks,
John
Johan Dahlin wrote:
>> 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