[python-win32] python crash with IE Activex

Stani Michiels s_t_a_n_i at gmx.net
Wed Mar 2 01:20:27 CET 2005


>
>
>Hi all,
>I'm playing with the demo example ActiveXWrapper_IE.py. What I want is 
>avoid users access some url's. To accomplish this I'm using 
>OnBeforeNavigate2 event, returning a true value should cancel the request...
>
><code>
>def OnBeforeNavigate2(self, pDisp, URL, Flags, TargetFrameName, 
>PostData, Headers, Cancel) :
>         self.log.write('OnBeforeNavigate2: %s\n' % URL)
>
>         if URL == "http://www.microsoft.com/": <http://www.microsoft.com/%22:>
>             return 1
></code>
>
>The problem is that if I return a true value, python crashes :s
>
>I've been searching some info, but got no luck :(
>
>Any ideas?
>
>Thanks
>Xavi Beumala
>

I would like to know as well. Please let me know if you have a solution.
Thanks,
Stani

http://spe.pycs.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20050302/867c9ddb/attachment.html


More information about the Python-win32 mailing list