]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/data/widgetTest.htm
checked in forgottern parts of MSLU changes
[wxWidgets.git] / wxPython / demo / data / widgetTest.htm
1 <html>
2 <head>
3 <title>wxHTML does wxPython!</title>
4 </head>
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>.
10 <p>
11 The button below is added to the page like this:
12 <pre>
13 &lt;center>&lt;wxp class="wxButton" width="50%">
14 &lt;param name="label" value="It works!">
15 &lt;param name="id" value="wxID_OK">
16 &lt;/wxp>&lt;/center>
17 </pre>
18 <hr>
19 <center>
20 <wxp class="wxButton" width="50%">
21 <param name="label" value="It works!">
22 <param name="id" value="wxID_OK">
23 </wxp>
24 </center>
25 <p>
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.
28 <p>
29 <hr>
30 <p>
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>.
33 <p>
34
35 <wxp module="widgetTest" class="TestPanel" width=180 height=100>
36 </wxp>
37
38 <wxp module="widgetTest" class="TestPanel" width=180 height=100>
39 <param name="bgcolor" value="#00CCFF">
40 </wxp>
41
42 <wxp module="widgetTest" class="TestPanel" width=180 height=100>
43 <param name="bgcolor" value="#0000FF">
44 </wxp>
45
46 <p><hr><p>
47
48 Recognize this one?<br>
49 <wxp module="wxScrolledWindow" class="MyCanvas" height=300 width=100%>
50 </wxp>
51
52 <p><hr><p>
53 You can also embed other wxHtmlWindows!<br>
54 <center>
55 <wxp module="widgetTest" class="TestHtmlPanel">
56 </wxp>
57 </center>
58 </body></html>