]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/ogl/_oglcanvas.i
fixed typo
[wxWidgets.git] / wxPython / contrib / ogl / _oglcanvas.i
index b220dee2a2b3b5f3b25f9a666eb4809f7f03788f..50b7ca6f0ccddce38a5d21af7b6a2d7567416db3 100644 (file)
@@ -99,16 +99,21 @@ public:
 %}
 
 
+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):