Hi Mark,

get_from_drawable() is a Pixbuf method and requires a Pixbuf object. Unlike the C API the Python API will not create a Pixbuf as a side effect. You'll have to create a Pixbuf first and then invoke the method. Check out the following reference page for more info:

http://www.moeraki.com/pygtkreference/pygtk2reference/class-gdkpixbuf.html

John

Mark C. Mason wrote:

Regarding my previous message, here is the error from python:


pixbuf = gtk.gdk.Pixbuf.get_from_drawable(widget.window, 0, 0, 0, 0, 0,
width, height)
TypeError: descriptor 'get_from_drawable' requires a 'gtk.gdk.Pixbuf'
object but received a 'gtk.gdk.Window'




_______________________________________________
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