PyIStream and COM question for WinGraphViz
mhammond at skippinet.com.au
Thu Jul 24 01:46:56 CEST 2003
Simon Frost wrote:
> Dear Python List,
> I'd like to write a COM interface to WinGraphViz
> (http://home.so-net.net.tw/oodtsen/wingraphviz/). I would like to dump
> my image to a PyIStream, but I can't find any documentation on how to do
> Here's the syntax for the COM interface
> ProgramID: WinGraphviz.BinaryImage
> Dump(IStream stream) as Boolean
> I would like to do something like
> 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