diff --git a/src/Mod/TechDraw/App/DrawPagePy.xml b/src/Mod/TechDraw/App/DrawPagePy.xml index 8fda91c872..9f16a74712 100644 --- a/src/Mod/TechDraw/App/DrawPagePy.xml +++ b/src/Mod/TechDraw/App/DrawPagePy.xml @@ -43,6 +43,11 @@ Return the orientation of this page + + + Ask the Gui to redraw this page + + diff --git a/src/Mod/TechDraw/App/DrawPagePyImp.cpp b/src/Mod/TechDraw/App/DrawPagePyImp.cpp index cb52fd3fd4..ef8879baa4 100644 --- a/src/Mod/TechDraw/App/DrawPagePyImp.cpp +++ b/src/Mod/TechDraw/App/DrawPagePyImp.cpp @@ -93,6 +93,16 @@ PyObject* DrawPagePy::getAllViews(PyObject* args) return Py::new_reference_to(ret); } +PyObject* DrawPagePy::requestPaint(PyObject* args) +{ + (void) args; + DrawPage* page = getDrawPagePtr(); + page->requestPaint(); + Py_INCREF(Py_None); + return Py_None; +} + + // double getPageWidth() const; PyObject* DrawPagePy::getPageWidth(PyObject *) {