>>>>> "Luc" == Luc Lefebvre <[EMAIL PROTECTED]> writes:

    Luc> I would like to set the contents of the pixbuf with
    Luc> draw_lines from a series of points.  There has to be a way of
    Luc> doing this but I've been reading for a few days and trying
    Luc> things, and have managed to get myself even more confused.

Sorry, this is off the cuff, but here's the basic idea

Draw to a gtk.gdk.Drawable as usual

    drawable.draw_lines(gc, zip(x, y))

Then draw to the pixbuf from the drawable

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

Hope this helps,
JDH
_______________________________________________
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