Quote:
Originally Posted by maggch
I learned to develop application for kindle yesterday.I used the PyGTK package here.I extract that to \extensions\python.Then I tried to develop a simple painter.however,when i want to save the image
Code:
width,height = pixmap.get_size()
pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, width, height)
pixbf = pixbuf.get_from_drawable(pixmap, pixmap.get_colormap(), 0, 0, 0, 0, width, height)
pixbf.save('path.png','png')
glib.GError: Image tpye 'png' is not supported
how to make glib support png?
|
What makes you think it is a glib error and not a missing PyGTK extension library error?
What device?
What firmware version?
Show us a library loading trace please. (worked examples of how to get that are in the "ARMhf on Kindle" thread)