3 <!--    12/13/2003 - Jeff Grimmett (grimmtooth@softhome.net) 
   5                 o Updated for wx namespace. 
   9 <title>wxHTML does wxPython!
</title> 
  11 <body bgcolor=
"#00CCFF"> 
  12 <h2>Mixing wxPython and wxHTML
</h2> 
  14 The widgets on this page were created dynamically on the fly by a
 
  15 custom wxTagHandler found in wxPython.lib.wxpTag.  You can look at the
 
  16 sources and doc-string 
<a href=
"../../lib/wxpTag.py">here
</a>.
 
  19 The button below is added to the page like this:
 
  22 <center
><wxp 
module="wx" 
class="Button" 
width="
50%"
> 
  23     <param 
name="label" 
value="It works!"
> 
  24     <param 
name="id"    
value="ID_OK"
> 
  31 <wxp module=
"wx" class=
"Button" width=
"50%"> 
  32     <param name=
"label" value=
"It works!"> 
  33     <param name=
"id"    value=
"ID_OK"> 
  38 Notice that the 
<b>button click
</b> event is actually caught by the panel
 
  39 that contains this window, which then logs it in the window below.
 
  43 This is the same widget reused three times, each with a different
 
  44 parameter value.  Source code is 
<a href=
"../widgetTest.py">here
</a>.
 
  47 <wxp module=
"widgetTest" class=
"TestPanel" width=
180 height=
100> 
  50 <wxp module=
"widgetTest" class=
"TestPanel" width=
180 height=
100> 
  51     <param name=
"bgcolor" value=
"#00CCFF"> 
  54 <wxp module=
"widgetTest" class=
"TestPanel" width=
180 height=
100> 
  55     <param name=
"bgcolor" value=
"#0000FF"> 
  60 Recognize this one?
<br> 
  61 <wxp module=
"ScrolledWindow" class=
"MyCanvas" height=
300 width=
100%
> 
  65 You can also embed other wxHtmlWindows!
<br> 
  67 <wxp module=
"widgetTest" class=
"TestHtmlPanel">