| 73 | } |
| 74 | |
| 75 | Py::Object ProgressIndicatorPy::start(const Py::Tuple& args) |
| 76 | { |
| 77 | char* text = nullptr; |
| 78 | unsigned int steps = 0; |
| 79 | if (!PyArg_ParseTuple(args.ptr(), "sI", &text, &steps)) { |
| 80 | throw Py::Exception(); |
| 81 | } |
| 82 | if (!_seq) { |
| 83 | _seq = std::make_unique<SequencerLauncher>(text, steps); |
| 84 | } |
| 85 | return Py::None(); |
| 86 | } |
| 87 | |
| 88 | Py::Object ProgressIndicatorPy::next(const Py::Tuple& args) |
| 89 | { |