[pygtk] image on a Button

Gorse Emmanuel e.gorse at gmail.com
Wed Sep 30 03:39:09 WST 2009


Hye,

I'm using this code to display an image on a button:

    img = gtk.Image()
    img.set_from_file(imgFullFile)
    button.set_image(img)

with imgFullFile beeing the absolute path of the image.

The code works fine under Linux, but the image is not displayed under Windows.
Do you have any idea why ?

Regards,


More information about the pygtk mailing list