[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 3a7a12e436
commit 79f9fb6845
2 changed files with 15 additions and 0 deletions

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