"Fossies" - the Fresh Open Source Software Archive

Member "chandler-1.0.3/external/wx/wxPython-r218/wxPython/demo/data/widgetTest.htm" (5 Dec 2007, 1680 Bytes) of package /windows/misc/Chandler_src_1.0.3.tar.gz:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted raw source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

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 in the wxPython library at wx/lib/wxpTag.py.

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">

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!