Frédéric Mantegazza-2 wrote:
> 
> 
> Is there an advantage using the Qt scripting framework in PyQt, as it
> should be possible to use python as scripting feature?
> 
> Is there some example code to show how one could allow users to script
> some parts of an application?
> 
> Thanks,
> 
> --
>    Frédéric
> 
> _______________________________________________
> PyQt mailing list    [email protected]
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 
> 

Hi Frédéric,

I was also wondering about the scripting capability. It surely makes lots of
sense for C++ applications written with Qt - scripting them in a more
accessible language like Javascript is a good idea for complex apps.
However, in PyQt we have Python built in - you can dynamically load, compile
and execute Python code, and exposing a Python API to Python is far simpler
and more natural than exposing a Python API to Javascript (or a C++ API to
Javascript).

As for examples, the PyQt distributions contains an examples directory.
There in script/ is a smallish example of JS scripting using the scripting
framework, so you may use it to get started.

Eli



-- 
View this message in context: 
http://www.nabble.com/Qt-scripting-framework-tp21978534p21999380.html
Sent from the PyQt mailing list archive at Nabble.com.


_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to