X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d74525f7640db2ac3c2229a869806904951aec55..94e2ed3b8db0220160c0b939782cd46914ec073a:/wxPython/contrib/ogl/oglbasic.i?ds=sidebyside diff --git a/wxPython/contrib/ogl/oglbasic.i b/wxPython/contrib/ogl/oglbasic.i index d93ef67c75..f12f64033f 100644 --- a/wxPython/contrib/ogl/oglbasic.i +++ b/wxPython/contrib/ogl/oglbasic.i @@ -42,7 +42,7 @@ //--------------------------------------------------------------------------- -class wxShapeRegion { +class wxShapeRegion : public wxObject { public: wxShapeRegion(); //~wxShapeRegion(); @@ -87,7 +87,7 @@ public: %} -class wxPyShapeEvtHandler { +class wxPyShapeEvtHandler : public wxObject { public: wxPyShapeEvtHandler(wxPyShapeEvtHandler *prev = NULL, wxPyShape *shape = NULL); @@ -95,9 +95,7 @@ public: void _setSelf(PyObject* self, PyObject* _class); %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyShapeEvtHandler)" - %addmethods { - void Destroy() { delete self; } - } + %addmethods { void Destroy() { delete self; } } void SetShape(wxPyShape *sh); wxPyShape *GetShape();