Oh gosh, never mind....
Just realized I forgot to import wxPython.lib.wxpTag
Doh!
jw
···
-----Original Message-----
From: Wyant, Jaime [mailto:jwyant@sfbcic.com]
Sent: Tuesday, June 24, 2003 10:11 AM
To: wxPython-users@lists.wxwindows.org
Subject: [wxPython-users] wxHtmlWindow seems to ignore my WXP tagsThe code below doesn't seem to work. I can't seem to figure
out how I am
breaking things. Anyone have a clue?# Begin code ...
html = '''
<html>
<body>Where is the button?
<wxp module="" class="wxButton">
<param name="label" value="Click here">
<param name="id" value="wxID_OK">
</wxp></body>
</html>
'''from wxPython.wx import *
from wxPython.html import wxHtmlWindowclass MyApp( wxApp ):
def OnInit( self ):
mf = wxFrame( None, -1, "Hello", size = (800,600) )
hw = wxHtmlWindow( mf, -1 )
hw.SetPage( html )
mf.Centre()
mf.Show()
return trueapp = MyApp(0)
app.MainLoop()# end code
Jaime Wyant
Programmer
MSFBINS
601 - 977 - 4291