thanks Simon,
King Simon-NFHD78 wrote:
Stef Mientki wrote:
King Simon-NFHD78 wrote:
Stef Mientki wrote:
<snip>
Now writing the converted string to a file is very clumsy:
I might not have write permission over there.
So I would like to stream the string from a string-variable.
I see there's a htmlfilter but I don't know how it works.Is there a (simpel) way to load the htmlwindow with a
memory-string ?
thanks,
Stef Mientki
If you are using wx.html.HtmlWindow, you can use
HtmlWindow.SetPage(<html_source>)
thanks Simon,
but from what I read ..."Sets HTML page and display it. This won't *load* the page!! It will display the /source/. See example:"
...it doesn't display the htmlpage,
or am I missing something ?cheers,
Stef
I think that docstring is misleading. What it means is that it won't use
the string you pass it as a URL to load the page from (as LoadPage
does), but instead treats it as HTML source to be displayed. The string
you pass will be rendered as HTML.The wxPython demo application uses it to display the overview for each
of the demos. The overviews are stored as 'overview' variables in each
module, and the main application displays it. Have a look at the
SetOverview method in Main.pyGive it a try:
Your absolutely right, it works.
cheers,
Stef