On 12/19/10 12:23 PM, pyt...@bdurham.com wrote:

2. Lack of a modern HTML widget or an easy-to-use, cross-platform way of 
wrapping one of the major browser platforms (Gecko, Webkit, IE). Lots of 
partial solutions, but nothing that abstracts the platform differences and 
presents a single API.

Have you looked at Tkhtml?
http://www.hwaci.com/sw/tkhtml/

Quote: Tkhtml is a Tcl/Tk widget that displays HTML. Tkhtml is
implemented in C. It is a true widget, not a metawidget implemented
using the Text or Canvas widgets of the Tcl/Tk core.

Python wrapper
http://tix.sourceforge.net/Tixapps/src/Python/TkHtml.py

I've used TkHTML in several of my applications. It's fine if all you need is basic HTML--i.e. HTML 3.2. It hasn't been updated in several years, and so doesn't support more modern HTML features like CSS. Its display is rather ugly. There was an ambitious attempt to update it, called TkHTML 3, but the project's developer and sponsor moved on to other projects, and now it's just in an alpha, unmaintained state.

Since I'm a Mac-only developer, I'm investigating the possibility of simply embedding a Cocoa WebKit view inside a Tk widget and using that in my apps. This can be done on Windows using IE and the OpTcl extension.

--Kevin

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to