X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab1f7d2aa9cb1857cf87e105ebbd36a92676bbde..42f8298f6f42d5d63bb3caf65682b7d9d9f8b702:/wxPython/contrib/ogl/_oglcanvas.i diff --git a/wxPython/contrib/ogl/_oglcanvas.i b/wxPython/contrib/ogl/_oglcanvas.i index af80f9ad97..50b7ca6f0c 100644 --- a/wxPython/contrib/ogl/_oglcanvas.i +++ b/wxPython/contrib/ogl/_oglcanvas.i @@ -104,13 +104,16 @@ MustHaveApp(wxPyShapeCanvas); class wxPyShapeCanvas : public wxScrolledWindow { public: %pythonAppend wxPyShapeCanvas "self._setOORandCallbackInfo(PyShapeCanvas)" - + %typemap(out) wxPyShapeCanvas*; // turn off this typemap + wxPyShapeCanvas(wxWindow* parent = NULL, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxBORDER, const wxString& name = wxPyShapeCanvasNameStr); + %typemap(out) wxPyShapeCanvas* { $result = wxPyMake_wxObject($1, $owner); } + void _setCallbackInfo(PyObject* self, PyObject* _class); %pythoncode { def _setOORandCallbackInfo(self, _class):