Mixing wxPython and wxHTML

The widgets on this page were created dynamically on the fly by a custom wxTagHandler found in wxPython.lib.wxpTag. You can look at the sources and doc-string here.

The button below is added to the page like this:

<center><wxp module="wx" class="Button" width="50%">
    <param name="label" value="It works!">
    <param name="id"    value="ID_OK">
</wxp></center>

Notice that the button click event is actually caught by the panel that contains this window, which then logs it in the window below.


This is the same widget reused three times, each with a different parameter value. Source code is here.


Recognize this one?


You can also embed other wxHtmlWindows!