문제

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

도움이 되었습니까?

해결책 2

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

http://wiki.wxpython.org/wxGTKWebKit

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top