@
ectotherm 呵呵,你被它名字弄迷糊了吧,我刚开始也是,直到看到这个:
http://fcamel-life.blogspot.com/2011/09/pythonwebkit.html 名字里有GTK未必就直接依赖于GTK,难道就不能自带干粮?官方文档里:
The GTK+ port of WebKit is intended to provide a browser component for the portable GTK+ UI toolkit. WebKitGTK+ is developed within the official WebKit SVN, so the codebase is unrelated to the classic GTK+ WebCore, but WebKitGTK+ has superseded Gtk+ WebCore. The WebKit Buildbot provides continuous build and layout tests.
unrelated有木有?所以,它是被独立出来,放在webkit里面的,在MacOS上build方法和Linux一样简单:
https://trac.webkit.org/wiki/BuildingGtk很久以前bookmark的一个列表,看能不能让你偷到懒 :-)
case 1:
http://www.gnu.org/software/pythonwebkit/http://www.notedit.com/2010/11/python-webkit-dom-bindings/case 2:Titanium Desktop SDKs Community Edition:
http://www.slideshare.net/jhaynie/desktop-applications-using-html-and-javascripthttp://www.appcelerator.com/products/plans-pricing/case 3:PyjamasDesktop(PyWebkitGtk): provides a simpler and more powerful alternative to python-wxWidgets, PyGtk2 and PyQt4.
http://pyjd.org/case 4:
http://code.google.com/p/onering-desktop/case5:
http://code.google.com/p/phantomjs/https://github.com/Roejames12/phantomjs (pyphantomjs)
case6:
http://awesomium.com/这些大部分都用webkit做UI render,可以自己加上bottle.py做ajax backend,以求在普通性能需求下用html+css搞定大部分界面互动。
不过这都是走黄老邪的路子,远不如 QT/wxPython 来得成熟,也不如tkinter完整,所以不见得能节省时间。