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

Method removeProperty

src/Gui/ViewProviderPyImp.cpp:122–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122PyObject* ViewProviderPy::removeProperty(PyObject* args)
123{
124 char* sName;
125 if (!PyArg_ParseTuple(args, "s", &sName)) {
126 return nullptr;
127 }
128
129 try {
130 bool ok = getViewProviderPtr()->removeDynamicProperty(sName);
131 return Py_BuildValue("O", (ok ? Py_True : Py_False));
132 }
133 catch (const Base::Exception& e) {
134 throw Py::RuntimeError(e.what());
135 }
136}
137
138PyObject* ViewProviderPy::supportedProperties(PyObject* args)
139{

Callers 1

Calls 2

removeDynamicPropertyMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected