tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
scriptrunner.h
Go to the documentation of this file.
1 #ifndef SCRIPTRUNNER_H
2 #define SCRIPTRUNNER_H
3 
4 #include "PythonQt.h"
5 #include "python/wrappers/py_wrappers.h"
6 
8 {
9  PythonQtObjectPtr _context;
10 public:
11  ScriptRunner() ;
12 
13  void runScriptFile(QString fName) {
14  const QString f = QString(fName);
15  _context.evalFile(f);
16  };
17 };
18 
19 #endif // SCRIPTRUNNER_H
minimal class to run python scripts (from menu)
Definition: scriptrunner.h:7
ScriptRunner()
Definition: scriptrunner.cpp:3
void runScriptFile(QString fName)
Definition: scriptrunner.h:13