| 86 | } |
| 87 | |
| 88 | Py::Object ProgressIndicatorPy::next(const Py::Tuple& args) |
| 89 | { |
| 90 | int b = 0; |
| 91 | if (!PyArg_ParseTuple(args.ptr(), "|i", &b)) { |
| 92 | throw Py::Exception(); |
| 93 | } |
| 94 | if (_seq) { |
| 95 | try { |
| 96 | _seq->next(b != 0); |
| 97 | } |
| 98 | catch (const Base::AbortException&) { |
| 99 | _seq.reset(); |
| 100 | throw Py::RuntimeError("abort progress indicator"); |
| 101 | } |
| 102 | } |
| 103 | return Py::None(); |
| 104 | } |
| 105 | |
| 106 | Py::Object ProgressIndicatorPy::stop(const Py::Tuple& args) |
| 107 | { |