wxIEHTML

Cliff Wells clifford.wells at comcast.net
Sat Oct 23 21:25:21 CEST 2004


On Sat, 2004-10-23 at 10:44 -0700, tutu wrote:

> maybe something like the following?
> <pre>
> import webbrowser
> EVT_MSHTML_BEFORENAVIGATE2(self, -1, self.OnBeforeNavigate2)
> 
> def OnBeforeNavigate2(self, event):     #IE event
>         url = event.GetText1()
>         webbrowser.open(url)  #open in default browser
>         event.Veto()    #don't open here
> </pre>

Ah, cool.  Thanks!

-- 
Cliff Wells <clifford.wells at comcast.net>




More information about the Python-list mailing list