]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/data/widgetTest.htm
Added wxAutoNSAutoreleasePool to Create(Tool|Status)Bar
[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>
1e4a197e
RD
7
8The widgets on this page were created dynamically on the fly by a
9custom wxTagHandler found in wxPython.lib.wxpTag. You can look at the
10sources and doc-string <a href="../../lib/wxpTag.py">here</a>.
11
e166644c
RD
12<p>
13The button below is added to the page like this:
1e4a197e 14
e166644c
RD
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>
1e4a197e 21
e166644c 22<hr>
1e4a197e 23
e166644c
RD
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>
1e4a197e 30
e166644c
RD
31<p>
32Notice that the <b>button click</b> event is actually caught by the panel
33that contains this window, which then logs it in the window below.
34<p>
35<hr>
36<p>
37This is the same widget reused three times, each with a different
38parameter 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
54Recognize this one?<br>
55<wxp module="wxScrolledWindow" class="MyCanvas" height=300 width=100%>
56</wxp>
57
58<p><hr><p>
59You can also embed other wxHtmlWindows!<br>
60<center>
61<wxp module="widgetTest" class="TestHtmlPanel">
62</wxp>
63</center>
64</body></html>