Question

I have problems rendering HTML in wxPython's HtmlWindow. It looks like, it doesn't load .css or image files!. But maybe there is a way to fix it? I know of WebView but it is not available on Linux yet.

EDIT

There is a way to do that using wxPython and PyGTK: http://wiki.wxpython.org/wxGTKWebKit

Was it helpful?

Solution 2

Ok, everyone. I found a way to render HTML on Linux. Who is interested take a look here:

http://wiki.wxpython.org/wxGTKWebKit

OTHER TIPS

Please see: http://wxpython.org/Phoenix/docs/html/html.HtmlWindow.html

If you want complete HTML/CSS support as well as a Javascript engine, see instead WebView. HtmlWindow uses the Image class for displaying images, as such you need to initialize the handlers for any image formats you use before loading a page. See InitAllImageHandlers and Image.AddHandler .

So, as the web page said, use WebView instead of HtmlWindow.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top