Assing a COM Interface to a Python object for callbacks

John J. Lee jjl at pobox.com
Fri Jul 4 11:35:14 EDT 2003


Alan Kennedy <alanmk at hotmail.com> writes:

> Mikko Ohtamaa wrote:
[...]
> > The problem is that SAX Parser requires COM interface for callback.
> > You must assign a COM interface as a handler to the parser. When the
> > parsing begins, the handler calls this interface.
[...]

See Mark Hammond's examples in the win32com/tests directory (IIRC)
that win32all installs in your Python directory.  I can't remember
which example demonstrates this, but I'm pretty sure one does.
There's also been some discussion on c.l.py on this.


John




More information about the Python-list mailing list