[pygtk] image and text in button

Yann Le Boulanger asterix at lagaule.org
Wed Jan 24 03:36:30 WST 2007


Tim Evans wrote:
> Yann Le Boulanger wrote:
>> I attached a very simple exemple that adds text and an image in a
>> button. This code works under linux (evert GTK version) but not under
>> windows (GTK2.10.6 / pygtk2.10.3). Ttext is displayed, but not image.
>>
>> Do I use button badly or is it a win32 bug ?
> 
> The windows theme for GTK disables button images to make it look more
> like windows.  This might be what's breaking your button.  You could try
> changing the 'gtkrc' file associated with the ms-windows theme to remove
> the line "gtk-button-images = 0".
> 

Ha yes that's it!

btw it also happens in some GTK themes where this option is also set to 0.

thanks
-- 
Yann


More information about the pygtk mailing list