HtmlListBox + EVT_HTML_LINK_CLICKED

Hey there,

I'm fiddling with HtmlListBox.
Seems like the OnLinkClicked (line 108) event handler does not execute
(when cliking on the link "rablo"). The app just stops responding.

Am I doing something wrong?

VListBox.py (5.85 KB)

···

--
Best regards,
Adam GROSZER mailto:agroszer@gmail.com
--
Quote of the day:
Do not underestimate the power of the Force.

Adam GROSZER wrote:

Hey there,

I'm fiddling with HtmlListBox.
Seems like the OnLinkClicked (line 108) event handler does not execute
(when cliking on the link "rablo"). The app just stops responding.

Am I doing something wrong?

No. There is a bug in the wxPython wrapper that is causing an infinite recursion there, and I've fixed it for the next release. In the meantime instead of catching the link click with the normal event, you can give your derived HtmlListBox class an OnLinkClicked(self, n, linkinfo) method and intercept the click before it gets to the bug.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!