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/":
             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
_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to