The 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 wxHtmlWindow
class 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 true
app = MyApp(0)
app.MainLoop()
# end code
Jaime Wyant
Programmer
MSFBINS
601 - 977 - 4291