]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/ogl/_oglcanvas.i
'[1219035] cleanup: miscellaneous' and minor source cleaning.
[wxWidgets.git] / wxPython / contrib / ogl / _oglcanvas.i
index 7dcf7ca4f851d13a8d1e9e362bea4fe11816f420..50b7ca6f0ccddce38a5d21af7b6a2d7567416db3 100644 (file)
@@ -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):