>>>>> "Mark" == Mark C Mason <[EMAIL PROTECTED]> writes:

    Mark> In the pygtk docs under gdk.Pixbuf, the method:

    Mark> def get_from_drawable(src, cmap, src_x, src_y, dest_x,
    Mark> dest_y, width, height)

    Mark> appears to be missing an argument.  The documentation itself
    Mark> talks about "dest" as a Pixbuf that is supplied, or if it is
    Mark> not supplied, one is created.

    Mark> When called with the above arguments, an error message
    Mark> complains that a Pixbuf argument is expected, presumably
    Mark> "dest".

    Mark> How can I make this call and have it create and return a new
    Mark> Pixbuf?


You need to create the pixbuf first as an instance of gtk.gdk.Pixbuf,
and then call the get_from_drawable method of that instance; eg, 

        pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, 0, 8, width, height)
        pixbuf.get_from_drawable(pixmap, drawable.get_colormap(),
                                 0, 0, 0, 0, width, height)


John Hunter 
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to