开发者

cross-platform html widget for pygtk

开发者 https://www.devze.com 2022-12-19 19:53 出处:网络
I\'m trying to write a small gui app in pygtk which needs an html-rendering widget.I\'d like to be able to use it in a windows environment.

I'm trying to write a small gui app in pygtk which needs an html-rendering widget. I'd like to be able to use it in a windows environment.

Currently I'm using pywebkitgtk on my GNU/Linux system, and it works extremely well, but it seems it's not possible to use this on Windows at this time.

Can anyone give me any suggestions on how to proceed? Do I need to work out how to embed IE using COM objects under Windows, and stick with pywebkitgtk on GNU/Linux?

I'm at an early stage, and am prepared to jettison pygtk in favour of another toolkit, say pyqt, if it affords a simpler solution 开发者_Python百科(though I'd sooner stick with pygtk if possible).


In my experience, having developed cross-platform applications with both PyQt and PyGTK, you should consider moving to PyQt. It comes with a browser widget by default which runs fine on all platforms, and support for non-Linux platforms is outstanding compared to PyGTK. For PyGTK, you will have to be prepared building PyGObject/PyCairo/PyGTK, or even the full stack, yourself on Windows and Mac OS X.


There is also gtkhtml2, but might not solve your problem on Windows. I haven't used it before myself. Another option to consider is pymozembed, to embed a Mozilla browser window in your GTK app.

0

精彩评论

暂无评论...
验证码 换一张
取 消