Patrick Vrijlandt wrote:
I am trying to replace a call to HtmlWindow.SetPage by direct use of
the parser (see attachment). The htmlwindow is opened, but stays empty.
My ultimate goal is to include a wx.Image in the window, next to the
html. (Alternatively, I could save the image to file, manipulate the
html inserting an image-tag linking the new file and call SetPage)
The only ways to get content displayed in the window are SetPage and
LoadPage. GetParser returns an HTML parser that you can use, but it's
not connected to the content in the window, as far as I know.
A second question is if and how the parse result can be visualised. As
shown, I can see the words, but I can't look 'inside' the colour and
font cells.
Well, the wx.html stuff is a lightweight browser that was not intended
for sophisticated HTML manipulation. You might be able to do what you
need by straight text manipulation or by using Python's HTML parsers.
Otherwise, you might want to look at embedding a real browser, like Mozilla.
ยทยทยท
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.