[pygtk] Problem with RadioButton: BACKGROUND COLOR SETTING IGNORED?

Frédéric frederic.mantegazza at gbiloba.org
Fri Oct 10 05:26:20 WST 2008


On jeudi 09 octobre 2008, Darren Enns wrote:

> Hello!
>
> My normal 'Button' buttons (and now 'ToggleButtons') honor my background
> color requests just fine (i.e. gtk.STATE_NORMAL, gtk.STATE_ACTIVE,
> gtk.STATE_PRELIGHT), but now that I have finally learned how to use
> 'RadioButton' buttons in my code, the background color setting is being
> ignored!  Am I going crazy?  All of my other buttons are set
> intentionally to a solid 'black' background, and the 'RadioButton'
> buttons stand out since they have a light gray background.
>
> I thought I would also try gtk.STATE_INSENSITIVE and gtk.STATE_SELECTED,
> but those don't (apparently) make any difference either.
>
> Can anyone shed light on what I may be missing?

What method do you use to set the background ? modify_bg() ? Also try to 
use modify_base(). See:

    http://faq.pygtk.org/index.py?req=show&file=faq04.016.htp

-- 
    Frédéric

    http://www.gbiloba.org


More information about the pygtk mailing list