| 964 | } |
| 965 | |
| 966 | PyObject* ApplicationPy::sShowObject(PyObject* /*self*/, PyObject* args) |
| 967 | { |
| 968 | PyObject* object = nullptr; |
| 969 | if (!PyArg_ParseTuple(args, "O!", &(App::DocumentObjectPy::Type), &object)) { |
| 970 | return nullptr; |
| 971 | } |
| 972 | |
| 973 | requirePythonMainThread("FreeCADGui.showObject"); |
| 974 | |
| 975 | // NOLINTNEXTLINE(cppcoreguidelines-pro-type-static-cast-downcast) |
| 976 | App::DocumentObject* obj = static_cast<App::DocumentObjectPy*>(object)->getDocumentObjectPtr(); |
| 977 | Application::Instance->showViewProvider(obj); |
| 978 | |
| 979 | Py_Return; |
| 980 | } |
| 981 | |
| 982 | PyObject* ApplicationPy::sOpen(PyObject* /*self*/, PyObject* args) |
| 983 | { |
nothing calls this directly
no test coverage detected