|
OpenStructure
|
#include <python_interpreter.hh>
Inherits QObject.
Public Slots | |
| unsigned int | RunScript (const QString &script) |
| unsigned int | RunCommand (const QString &command) |
Signals | |
| void | Output (unsigned int id, const QString &output) |
| void | ErrorOutput (unsigned int id, const QString &output) |
| void | Finished (unsigned int id, bool error_state) |
| void | Exit () |
| void | WakeWorker () |
Public Member Functions | |
| ~PythonInterpreter () | |
| bool | IsRunning () |
| void | AppendModulePath (const QString &entry) |
| void | AppendCommandlineArgument (const QString &arg) |
| bp::dict | GetMainNamespace () const |
| bp::object | GetMainModule () const |
| CodeBlockStatus | GetCodeBlockStatus (const QString &command) |
| void | Stop () |
| void | Start () |
| void | StopScript () |
Static Public Member Functions | |
| static PythonInterpreter & | Instance () |
Protected Member Functions | |
| PythonInterpreter () | |
Protected Attributes | |
| bp::object | main_module_ |
| bp::dict | main_namespace_ |
| bool | running_ |
| bp::object | compile_command_ |
| PythonInterpreterWorker | worker_ |
Definition at line 54 of file python_interpreter.hh.
| ~PythonInterpreter | ( | ) |
|
protected |
| void AppendCommandlineArgument | ( | const QString & | arg | ) |
| void AppendModulePath | ( | const QString & | entry | ) |
|
signal |
|
signal |
|
signal |
| CodeBlockStatus GetCodeBlockStatus | ( | const QString & | command | ) |
Get code block status.
Determines whether the command contains errors, is incomplete or ready to be run.
| bp::object GetMainModule | ( | ) | const |
| bp::dict GetMainNamespace | ( | ) | const |
|
static |
| bool IsRunning | ( | ) |
|
signal |
|
slot |
|
slot |
execute python command
| void Start | ( | ) |
start/continue execution of Python commands
| void Stop | ( | ) |
stop execution of Python commands
| void StopScript | ( | ) |
stop script execution
|
signal |
|
protected |
Definition at line 102 of file python_interpreter.hh.
|
protected |
Definition at line 99 of file python_interpreter.hh.
|
protected |
Definition at line 100 of file python_interpreter.hh.
|
protected |
Definition at line 101 of file python_interpreter.hh.
|
protected |
Definition at line 103 of file python_interpreter.hh.
1.8.5