OnLinkClicked messages do not appear

22 views
Skip to first unread message

Bill Bell

unread,
Nov 7, 2017, 1:41:12 PM11/7/17
to wxPython-users
The code displays the initial HTML file. When I click on the link the other HTML file is displayed. However, OnLinkClicked is not exercised.

I seem to find the same peculiar behaviour in the demo for HtmlWindow. When I click on a link I see activation messages in the log window but no OnLinkClicked messages.

Have I finally lost it?
temp.py

Tim Roberts

unread,
Nov 7, 2017, 2:13:20 PM11/7/17
to wxpytho...@googlegroups.com
Did you see this note in the documentation?

    OnLinkClicked( self, link )
        ....
        Overloading this method is deprecated; intercept the event instead.

When I bind to the EVT_HTML_LINK_CLICKED event, your handler fires as
expected.

--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

Bill Bell

unread,
Nov 7, 2017, 7:07:38 PM11/7/17
to wxPython-users

No, sir, I didn't! Thanks very much. 
Reply all
Reply to author
Forward
0 new messages