[TD]expose Page request paint method to Python
This commit is contained in:
committed by
WandererFan
parent
f6653d44af
commit
05c7b8e210
@@ -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>
|
||||
|
||||
@@ -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 *)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user