WxHTML window

L

LutherRevisited

I'm using a wxhtml window to display an email message, my question is, what do
I need to put in onLinkClicked to make it to where a link is opened in my
default browser instead of in the wxhtml window?
 
M

Mitch Chapman

I'm using a wxhtml window to display an email message, my question is, what do
I need to put in onLinkClicked to make it to where a link is opened in my
default browser instead of in the wxhtml window?

This works for me (wxPython 2.4.2.1, Python 2.3, Solaris 2.8):

import webbrowser
....
class MyHtml(html.wxHtmlWindow):
....
def OnLinkClicked(self, linkInfo):
webbrowser.open(linkInfo.GetHref())
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top