Call OCX from python?

JustSomeGuy nope at nottelling.com
Mon Nov 28 18:51:17 EST 2005


"Claudio Grondi" <claudio.grondi at freenet.de> wrote in message
news:3usl5aF12ja39U1 at individual.net...
> "JustSomeGuy" <nope at nottelling.com> schrieb im Newsbeitrag
> news:5n4if.627200$1i.183531 at pd7tw2no...
> > Hi I have a commercial OCX that I want to use in
> > my python application.  How do I call OCXs from
> > python?
> > TIA
>
> import win32com.client
> axOCX =
>
win32com.client.Dispatch("RegistryEntryForThisOCXin[VersionIndependentProgID
> ]section")
> retVal = axOCX.methodOfThisOCX(param1, param2)
> value = axOCX.attributeOfThisOCX
>
> Claudio
>
>

Thank you Claudio...
Can you explain the RegistryEntryForThisOcxin[VersionIndependentProgID]
I don't know what I should use here..





More information about the Python-list mailing list