[TD]expose Page request paint method to Python

This commit is contained in:
Wanderer Fan
2022-01-10 10:09:20 -05:00
committed by WandererFan
parent f6653d44af
commit 05c7b8e210
2 changed files with 15 additions and 0 deletions

View File

@@ -43,6 +43,11 @@
<UserDocu>Return the orientation of this page</UserDocu>
</Documentation>
</Methode>
<Methode Name="requestPaint">
<Documentation>
<UserDocu>Ask the Gui to redraw this page</UserDocu>
</Documentation>
</Methode>
<CustomAttributes />
</PythonExport>
</GenerateModel>

View File

@@ -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 *)
{