3 <title>wxHTML does wxPython!
</title>
5 <body bgcolor=
"#00CCFF">
6 <h2>Mixing wxPython and wxHTML
</h2>
7 The widgets on this page were created dynamically on the fly by a custom
8 wxTagHandler found in wxPython.lib.wxpTag. You can look at the sources
9 and doc-string
<a href=
"../../lib/wxpTag.py">here
</a>.
11 The button below is added to the page like this:
13 <center
><wxp
class="wxButton"
width="
50%"
>
14 <param
name="label"
value="It works!"
>
15 <param
name="id"
value="wxID_OK"
>
20 <wxp class=
"wxButton" width=
"50%">
21 <param name=
"label" value=
"It works!">
22 <param name=
"id" value=
"wxID_OK">
26 Notice that the
<b>button click
</b> event is actually caught by the panel
27 that contains this window, which then logs it in the window below.
31 This is the same widget reused three times, each with a different
32 parameter value. Source code is
<a href=
"../widgetTest.py">here
</a>.
35 <wxp module=
"widgetTest" class=
"TestPanel" width=
180 height=
100>
38 <wxp module=
"widgetTest" class=
"TestPanel" width=
180 height=
100>
39 <param name=
"bgcolor" value=
"#00CCFF">
42 <wxp module=
"widgetTest" class=
"TestPanel" width=
180 height=
100>
43 <param name=
"bgcolor" value=
"#0000FF">
48 Recognize this one?
<br>
49 <wxp module=
"wxScrolledWindow" class=
"MyCanvas" height=
300 width=
100%
>
53 You can also embed other wxHtmlWindows!
<br>
55 <wxp module=
"widgetTest" class=
"TestHtmlPanel">