On Mon Jun 7 09:25:55 BST 2010, Christophe wrote: >>> QtWebKit, not PyQt, provides the bridge between C++ and JavaScript. PyQt >>> integrates Python with Qt's meta-object system which gives you the bridge >>> between Python and JavaScript for free.
> Are there simple and not so simple examples of this kind of > functionnalities somewhere ? People keep asking this in various places. I seem to remember helping someone write some code to put Qt objects into the WebKit JavaScript environment fairly recently. I always refer back to some code I wrote last year for this: http://chaos.troll.no/~dboddie/Python/PyConTre_Italia_2009/ An extreme example can be found here: http://www.diotavelli.net/PyQtWiki/Exposing_Qt_Class_to_QtWebKit Unfortunately, there are only C++ versions of the QWebElement examples: http://doc.qt.nokia.com/4.7-snapshot/webkit-domtraversal.html http://doc.qt.nokia.com/4.7-snapshot/webkit-simpleselector.html However, it should be quite easy to port these to Python. David _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
