X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b9048c56f0aa04b2adbb7813f9698abdda15184..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/contrib/ogl/_oglcanvas.i diff --git a/wxPython/contrib/ogl/_oglcanvas.i b/wxPython/contrib/ogl/_oglcanvas.i index 7dcf7ca4f8..50b7ca6f0c 100644 --- a/wxPython/contrib/ogl/_oglcanvas.i +++ b/wxPython/contrib/ogl/_oglcanvas.i @@ -99,16 +99,21 @@ public: %} +MustHaveApp(wxPyShapeCanvas); + class wxPyShapeCanvas : public wxScrolledWindow { public: - %pythonAppend wxPyShapeEvtHandler "self._setOORandCallbackInfo(PyShapeEvtHandler)" - + %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):