質問

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