]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/data/widgetTest.htm
fixed array tests compilation and a bug in obj array test
[wxWidgets.git] / wxPython / demo / data / widgetTest.htm
CommitLineData
e166644c
RD
1<html>
2<head>
3<title>wxHTML does wxPython!</title>
4</head>
5<body bgcolor="#00CCFF">
6<h2>Mixing wxPython and wxHTML</h2>
7The widgets on this page were created dynamically on the fly by a custom
8wxTagHandler found in wxPython.lib.wxpTag. You can look at the sources
9and doc-string <a href="../../lib/wxpTag.py">here</a>.
10<p>
11The 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>
26Notice that the <b>button click</b> event is actually caught by the panel
27that contains this window, which then logs it in the window below.
28<p>
29<hr>
30<p>
31This is the same widget reused three times, each with a different
32parameter 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
48Recognize this one?<br>
49<wxp module="wxScrolledWindow" class="MyCanvas" height=300 width=100%>
50</wxp>
51
52<p><hr><p>
53You can also embed other wxHtmlWindows!<br>
54<center>
55<wxp module="widgetTest" class="TestHtmlPanel">
56</wxp>
57</center>
58</body></html>