| 744 | }; |
| 745 | |
| 746 | PyObject* Gui::ApplicationPy::sEditDocument(PyObject* /*self*/, PyObject* args) |
| 747 | { |
| 748 | if (!PyArg_ParseTuple(args, "")) { |
| 749 | return nullptr; |
| 750 | } |
| 751 | |
| 752 | requirePythonMainThread("FreeCADGui.editDocument"); |
| 753 | |
| 754 | Document* pcDoc = Application::Instance->editDocument(); |
| 755 | if (pcDoc) { |
| 756 | return pcDoc->getPyObject(); |
| 757 | } |
| 758 | |
| 759 | Py_Return; |
| 760 | } |
| 761 | |
| 762 | PyObject* Gui::ApplicationPy::sActiveDocument(PyObject* /*self*/, PyObject* args) |
| 763 | { |
nothing calls this directly
no test coverage detected