Re: How to enable events for Python Active Scripting?
Mark Hammond <[email protected]> Mon, 13 Mar 2023 13:54:23 +1100
| Newsgroups | gmane.comp.python.windows |
|---|---|
| Message-ID | <[email protected]> |
It's difficult to know what exactly you mean, but if it is how to use IConnectionPoint etc from Python in general, then you should check out the following files in the distribution: com\win32com\demos\connect.py com\win32com\server\connect.py com\win32com\client\connect.py If it is about the use of these interfaces specifically with ActiveScripting, then you should find win32comext\axscript\test\testHost.py useful. win32comext\axscript\client\framework.py is where the implementation of Active Scripting's event handling is implemented - eg, see the functions Connect, CreateConnections, ConnectEventHandlers etc in that file. HTH, Mark On 13/03/2023 1:05 am, Wuping Xin wrote: > I have a host application that uses Python Active Scripting. That host > application implements IConnectionPoint / IConnectionPointContainers > etc, and I am able to set COM event callbacks in C++. > > But I am having a hard time to figure out how to set COM event callback > with Python Active Scripting - I bought the book "/Python Programming On > Win32, but /it doesn't provide much information about//Python Active > Scripting COM events. > > Need help and much appreciate any advice. > > Wu > > _______________________________________________ > python-win32 mailing list > [email protected] > https://mail.python.org/mailman/listinfo/python-win32 _______________________________________________ python-win32 mailing list [email protected] https://mail.python.org/mailman/listinfo/python-win32