1 #ifndef RS_SIMPLEPYTHON_H
2 #define RS_SIMPLEPYTHON_H
4 #ifdef RS_OPT_SIMPLEPYTHON
10 #define RS_SIMPLEPYTHON RS_SimplePython::instance()
13 * Python scripting support.
17 * @author Andrew Mustun
28 static RS_SimplePython * instance();
30 void setGraphic(Drawing* g)
35 Drawing * getGraphic()
40 int launch(const QString& script);
43 static RS_SimplePython * uniqueInstance;
49 * Global method needed by the python lib for initialisation.
51 void init_pyextension();
59 * Adds a line to the current graphic document.
61 void rsPyAddLine(double x1, double y1, double x2, double y2);