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

Method getDialogContent

src/Gui/TaskView/TaskDialogPython.cpp:544–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544Py::Object TaskDialogPy::getDialogContent(const Py::Tuple& args)
545{
546 if (!PyArg_ParseTuple(args.ptr(), "")) {
547 throw Py::Exception();
548 }
549
550 PythonWrapper wrap;
551 wrap.loadWidgetsModule();
552
553 Py::List list;
554 auto widgets = dialog->getDialogContent();
555 for (auto it : widgets) {
556 list.append(wrap.fromQWidget(it));
557 }
558
559 return list;
560}
561
562Py::Object TaskDialogPy::getStandardButtons(const Py::Tuple& args)
563{

Callers 2

showDialogMethod · 0.80
removeDialogMethod · 0.80

Calls 5

loadWidgetsModuleMethod · 0.80
fromQWidgetMethod · 0.80
ExceptionClass · 0.50
ptrMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected