[pygtk] Loading PNGs.

Javi Roman javi@esware.com
Thu, 27 Jul 2000 19:15:29 +0200


I have the following code:

from gtk import *

rcfile = """
pixmap_path "/home"
style "back" {
	bg_pixmap[NORMAL] = "image.xpm"
}
widget "*mystyle" style "back"
"""

Everything works correctly. But the load of the image is very slow,
therefore I have tried to use the following thing:

from gtk import *

rcfile = """
pixmap_path "/home"
style "back" {
	bg_pixmap[NORMAL] = "image.png"
}
widget "*mystyle" style "back"
"""

It does not load the PNG image, why?.
In other programs I have seen that they load PNG images without
problems.