[PyQt] Tutorial about the use of JavaScript

2009-12-06 Thread projetmbc
Hello,
I'm looking for a tutorial about the use of JavaScript inside a pyQt 
application.

Every kind of clue is welcome.
Christophe.

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Tutorial about the use of JavaScript

2009-12-06 Thread Benjamin Kleiner
Hi Christophe.
The page http://doc.trolltech.com/4.5/qscriptengine.html#details in the 
original api doc of Qt was so far sufficient to me, e.g. I 
was able to translate most examples there from C++ into Python. You'll only 
have to take care that native functions (those that 
are implemented in Python and get called from JS) really returns a QScriptValue 
(in C++ it apparently gets casted 
automatically), and that imported Objects must be descendants of QObject, so 
you need a wrapper to import QDateTime and some 
other basic creeps.

Regards,
Benjamin.


signature.asc
Description: This is a digitally signed message part.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt