MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / next

Method next

src/Base/ProgressIndicatorPy.cpp:88–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88Py::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
106Py::Object ProgressIndicatorPy::stop(const Py::Tuple& args)
107{

Callers

nothing calls this directly

Calls 3

ExceptionClass · 0.50
ptrMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected