On Wed, Feb 11, 2004 at 02:34:32PM -0600, John Hunter wrote:
> 
> I use pixbuf.save(fname, 'png') to write PNGs to file fname.  I would
> like to have the option to write to stdout, but I get an error when I
> pass in a file instance, eg, sys.stdout or file(fname, 'w').  This is
> not too surprising and is consistent with the documentation, but I was
> wondering if there is any known way to write a pixbuf as PNG to a
> file-like object, eg stdout.

Can't you produce a string from the pixbuf? If so, it would be a matter
of open()ing a file and write()ing to it..

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
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