How python ActiveX to access DHTML document?

angel dai4happy at yahoo.com
Sat May 8 06:05:47 EDT 2004


Hi

I want to write an ActiveX by using python. And I know how do, but I don't
know how python to access DHTML Document.If using cpp, it can be done by
following source.
/****/
CComPtr<IOleContainer> spContainer;
m_spClientSite->GetContainer(&spContainer);
CComQIPtr<IHTMLDocument2, &IID_IHTMLDocument2> spDoc(spContainer);
if (spDoc)
    spDoc->put_bgColor(CComBSTR(_T("pink")));
/****/
Who can tell me how to do the same in python? Thanx

ps. I use win32com package.

Thanx again
angel





More information about the Python-list mailing list