View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#21
Originally Posted by impeham View Post
it would be great if it could also run python scripts!
It would be possible to run a python script using QProcess. This would currently require you to write a small Qt Plugin which would be loaded by MultiMote at runtime. See https://github.com/marxoft/multimote...tes/helloworld for an example.

In future I may expose QProcess to the scripting environment, so you can run scripts from JS, like this:

Code:
var process = new Process();
process.command = "python xyz";
process.onFinished.connect( function (status) { print(status); } );
process.start();
If you are referring to the possibility of integrating Python code into MultiMote, then there is a library called PythonQt that may facilitate this, but I've never tried it.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub

Last edited by marxian; 2014-07-17 at 00:49.
 

The Following User Says Thank You to marxian For This Useful Post: