[pygtk] Loading of images

Johan Dahlin johan at gnome.org
Tue Jan 29 21:16:01 WST 2008


vladovi at atlas.cz wrote:
> Hello,
> 
> I'm a having a very strange problem loading images for buttons. I use 
> this code:
> 
> button_image = gtk.Image()
> button_image.set_from_file(u"icons\dvd.png")

\ is an escape character i python.
Use / or \\.

Johan


More information about the pygtk mailing list