pb = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, True, 8, w, h)
pb.get_from_drawable(disp.pixmap, disp.pixmap.get_colormap(), 0, 0, 0, 0,
    width, height)
ValueError while trying to save a pixmap as a png file