PyIStream and COM question for WinGraphViz

Mark Hammond mhammond at
Thu Jul 24 01:46:56 CEST 2003

Simon Frost wrote:

> Dear Python List,
> I'd like to write a COM interface to WinGraphViz 
> ( I would like to dump 
> my image to a PyIStream, but I can't find any documentation on how to do 
> this.
> Here's the syntax for the COM interface
> ProgramID: WinGraphviz.BinaryImage
>  Dump(IStream stream) as Boolean
> I would like to do something like
> istream=PyIStream(...)
> myBinaryImage.Dump(istream)
> and then go on to display the image.
> Any help would be greatly appreciated.

Presumably this is a method on the COM object.  You want to create a 
stream object, pass it to the library, and have it "dump" to your object?

If so, check our win32com\test\testStreams for examples of Python 
implemented IStream interfaces.


More information about the Python-list mailing list