X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9416aa89ca06d0fb20b1002e026d2c7ac7aa6a17..1b21409b36057d8281675973a7c3a1d77d9c0ddb:/wxPython/contrib/ogl/oglcanvas.i diff --git a/wxPython/contrib/ogl/oglcanvas.i b/wxPython/contrib/ogl/oglcanvas.i index 1761f82f8a..38507e443f 100644 --- a/wxPython/contrib/ogl/oglcanvas.i +++ b/wxPython/contrib/ogl/oglcanvas.i @@ -31,7 +31,7 @@ %include _ogldefs.i -%extern oglbasic.i +%import oglbasic.i %pragma(python) code = "import wx" @@ -45,7 +45,7 @@ public: wxDiagram(); //~wxDiagram(); - void AddShape(wxPyShape*shape, wxPyShape *addAfter = NULL); + void AddShape(wxPyShape* shape, wxPyShape *addAfter = NULL); void Clear(wxDC& dc); void DeleteAllShapes(); void DrawOutline(wxDC& dc, double x1, double y1, double x2, double y2); @@ -116,11 +116,9 @@ public: const wxSize& size = wxDefaultSize, long style = wxBORDER); - void _setSelf(PyObject* self, PyObject* _class); - %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPyShapeCanvas)" - - %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)" - %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)" + void _setCallbackInfo(PyObject* self, PyObject* _class); + %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyShapeCanvas)" + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" void AddShape(wxPyShape *shape, wxPyShape *addAfter = NULL);