Runs the blocking python(...) computation in a worker thread.
More...
#include <PythonRunner.h>
|
| void | run () |
| | Call this slot to start the computation (meant to be invoked from the worker thread). More...
|
| |
|
| void | finished (bool ok, QString errorMsg) |
| | Emitted when the computation completes. More...
|
| |
Runs the blocking python(...) computation in a worker thread.
The object lives in a QThread. Call the slot run() (e.g., on QThread::started). When finished, it emits finished(bool ok, QString errorMsg).
User-facing messages remain in French (they are produced inside python()).
Definition at line 35 of file PythonRunner.h.
◆ PythonRunner()
| PythonRunner::PythonRunner |
( |
QStringList |
args, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ finished
| void PythonRunner::finished |
( |
bool |
ok, |
|
|
QString |
errorMsg |
|
) |
| |
|
signal |
Emitted when the computation completes.
- Parameters
-
| ok | true on success, false otherwise. |
| errorMsg | Human-readable message (French) set on failure. |
◆ run
| void PythonRunner::run |
( |
| ) |
|
|
slot |
Call this slot to start the computation (meant to be invoked from the worker thread).
Definition at line 26 of file PythonRunner.cpp.
◆ m_args
| QStringList PythonRunner::m_args |
|
private |
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan/checkouts/issue_952/Tympan/gui/app/PythonRunner.h
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan/checkouts/issue_952/Tympan/gui/app/PythonRunner.cpp