X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b9048c56f0aa04b2adbb7813f9698abdda15184..42f8298f6f42d5d63bb3caf65682b7d9d9f8b702:/wxPython/contrib/ogl/_oglcanvas.i?ds=sidebyside 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):