1

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

JadedTuna
  • 1,783
  • 2
  • 18
  • 32

2 Answers2

1

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.

ProgramFOX
  • 6,131
  • 11
  • 45
  • 51
  • I know about `WebView`, but for some reason I can't use it on **Linux**. So thats why I was asking about `HtmlWindow`. – JadedTuna Oct 12 '13 at 15:27
  • Then I've no idea about the CSS, but you can use images on it using the `InitAllImageHandlers` and `Image.AddHandler` methods. – ProgramFOX Oct 12 '13 at 15:36
1

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

http://wiki.wxpython.org/wxGTKWebKit

JadedTuna
  • 1,783
  • 2
  • 18
  • 32