]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/data/widgetTest.htm
Merged wxPython 2.4.x to the 2.5 branch (Finally!!!)
[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
8 The widgets on this page were created dynamically on the fly by a
9 custom wxTagHandler found in wxPython.lib.wxpTag. You can look at the
10 sources and doc-string <a href="../../lib/wxpTag.py">here</a>.
11
12 <p>
13 The button below is added to the page like this:
14
15 <pre>
16 &lt;center>&lt;wxp class="wxButton" width="50%">
17 &lt;param name="label" value="It works!">
18 &lt;param name="id" value="wxID_OK">
19 &lt;/wxp>&lt;/center>
20 </pre>
21
22 <hr>
23
24 <center>
25 <wxp class="wxButton" width="50%">
26 <param name="label" value="It works!">
27 <param name="id" value="wxID_OK">
28 </wxp>
29 </center>
30
31 <p>
32 Notice that the <b>button click</b> event is actually caught by the panel
33 that contains this window, which then logs it in the window below.
34 <p>
35 <hr>
36 <p>
37 This is the same widget reused three times, each with a different
38 parameter value. Source code is <a href="../widgetTest.py">here</a>.
39 <p>
40
41 <wxp module="widgetTest" class="TestPanel" width=180 height=100>
42 </wxp>
43
44 <wxp module="widgetTest" class="TestPanel" width=180 height=100>
45 <param name="bgcolor" value="#00CCFF">
46 </wxp>
47
48 <wxp module="widgetTest" class="TestPanel" width=180 height=100>
49 <param name="bgcolor" value="#0000FF">
50 </wxp>
51
52 <p><hr><p>
53
54 Recognize this one?<br>
55 <wxp module="wxScrolledWindow" class="MyCanvas" height=300 width=100%>
56 </wxp>
57
58 <p><hr><p>
59 You can also embed other wxHtmlWindows!<br>
60 <center>
61 <wxp module="widgetTest" class="TestHtmlPanel">
62 </wxp>
63 </center>
64 </body></html>