3 <title>wxHTML does wxPython!
</title> 
   5 <body bgcolor=
"#00CCFF"> 
   6 <h2>Mixing wxPython and wxHTML
</h2> 
   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>.
 
  13 The button below is added to the page like this:
 
  16 <center
><wxp 
class="wxButton" 
width="
50%"
> 
  17     <param 
name="label" 
value="It works!"
> 
  18     <param 
name="id"    
value="wxID_OK"
> 
  25 <wxp class=
"wxButton" width=
"50%"> 
  26     <param name=
"label" value=
"It works!"> 
  27     <param name=
"id"    value=
"wxID_OK"> 
  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.
 
  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>.
 
  41 <wxp module=
"widgetTest" class=
"TestPanel" width=
180 height=
100> 
  44 <wxp module=
"widgetTest" class=
"TestPanel" width=
180 height=
100> 
  45     <param name=
"bgcolor" value=
"#00CCFF"> 
  48 <wxp module=
"widgetTest" class=
"TestPanel" width=
180 height=
100> 
  49     <param name=
"bgcolor" value=
"#0000FF"> 
  54 Recognize this one?
<br> 
  55 <wxp module=
"wxScrolledWindow" class=
"MyCanvas" height=
300 width=
100%
> 
  59 You can also embed other wxHtmlWindows!
<br> 
  61 <wxp module=
"widgetTest" class=
"TestHtmlPanel">