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

Method errorDialog

src/Mod/Test/Gui/UnitTestPy.cpp:149–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149Py::Object UnitTestDialogPy::errorDialog(const Py::Tuple& args)
150{
151 char* title = nullptr;
152 char* message = nullptr;
153 if (!PyArg_ParseTuple(args.ptr(), "ss", &title, &message)) {
154 throw Py::Exception();
155 }
156 UnitTestDialog::instance()->showErrorDialog(title, message);
157 return Py::None();
158}
159
160Py::Object UnitTestDialogPy::setRunCount(const Py::Tuple& args)
161{

Callers 1

exerciseFunction · 0.45

Calls 4

showErrorDialogMethod · 0.80
ExceptionClass · 0.50
instanceFunction · 0.50
ptrMethod · 0.45

Tested by

no test coverage detected