Re: [pygtk] save pixbuf to stdout

2004-02-12 Thread John Hunter
> "Tim" == Tim Evans <[EMAIL PROTECTED]> writes: Tim> Producing a string from a pixbuf (in PNG format) is coverred Tim> here: http://bugzilla.gnome.org/show_bug.cgi?id=82203 Tim> This patch will be part of GTK+-2.4. Until then the only way Tim> to get a pixbuf in a string is

Re: [pygtk] save pixbuf to stdout

2004-02-11 Thread Tim Evans
Christian Robottom Reis wrote: 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

Re: [pygtk] save pixbuf to stdout

2004-02-11 Thread Christian Robottom Reis
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 surprisin

[pygtk] save pixbuf to stdout

2004-02-11 Thread John Hunter
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 ther