[python-win32] Fwd: pywin32 bugs feedback from learner
Roger Upole
rwupole at msn.com
Thu Aug 2 10:37:34 CEST 2007
Huang Guan wrote:
> Thank you very much for your quick response.
> As brief view of PAMIE source code, PAMIE realization is a very special ideas.
> But it can only be used by Dispatch approaches, it does not use the
> method DispatchWithEvents;
> I can't load "Loading HTML content from a Stream" function.
> Pls see the functional description:
> http://msdn2.microsoft.com/en-us/library/aa752047.aspx.
import win32com.client, pythoncom
class IE_Events:
def OnNavigateComplete2(self, pDisp, URL):
print 'OnNavigateComplete2:', URL
ie=win32com.client.DispatchWithEvents('internetexplorer.application', IE_Events)
ie.Visible=1
ie.Navigate('about:blank')
p=ie.Document._oleobj_.QueryInterface(pythoncom.IID_IPersistStreamInit)
p.Load(<PyIStream that contains content>)
Roger
More information about the python-win32
mailing list