| 760 | } |
| 761 | |
| 762 | PyObject* Gui::ApplicationPy::sActiveDocument(PyObject* /*self*/, PyObject* args) |
| 763 | { |
| 764 | if (!PyArg_ParseTuple(args, "")) { |
| 765 | return nullptr; |
| 766 | } |
| 767 | |
| 768 | requirePythonMainThread("FreeCADGui.activeDocument"); |
| 769 | |
| 770 | Document* pcDoc = Application::Instance->activeDocument(); |
| 771 | if (pcDoc) { |
| 772 | return pcDoc->getPyObject(); |
| 773 | } |
| 774 | |
| 775 | Py_Return; |
| 776 | } |
| 777 | |
| 778 | PyObject* Gui::ApplicationPy::sActiveView(PyObject* /*self*/, PyObject* args) |
| 779 | { |
nothing calls this directly
no test coverage detected