"The Object Graphics Library provides for simple drawing and manipulation
of 2D objects. (This version is deprecated, please use wx.lib.ogl instead.)"
%enddef
-%module(docstring=DOCSTRING) ogl
+
+%module(package="wx", docstring=DOCSTRING) ogl
%{
#include "wx/wxPython/wxPython.h"
%pythoncode {
import warnings
- warnings.warn("This module is deprecated. Please use the wx.lib.ogl pacakge instead.",
+ warnings.warn("This module is deprecated. Please use the wx.lib.ogl package instead.",
DeprecationWarning, stacklevel=2)
}
//---------------------------------------------------------------------------
+MustHaveApp(wxOGLInitialize);
void wxOGLInitialize();
+
+MustHaveApp(wxOGLCleanUp);
void wxOGLCleanUp();
//---------------------------------------------------------------------------
-PyObject* wxPyMake_wxShapeEvtHandler(wxShapeEvtHandler* source) {
+PyObject* wxPyMake_wxShapeEvtHandler(wxShapeEvtHandler* source, bool setThisOwn) {
PyObject* target = NULL;
if (source && wxIsKindOf(source, wxShapeEvtHandler)) {
}
}
if (! target) {
- target = wxPyMake_wxObject2(source, FALSE);
+ target = wxPyMake_wxObject2(source, setThisOwn, false);
if (target != Py_None)
((wxShapeEvtHandler*)source)->SetClientObject(new wxPyOORClientData(target));
}
pyList = PyList_New(0);
while (node) {
wxObj = node->GetData();
- pyObj = wxPyMake_wxShapeEvtHandler((wxShapeEvtHandler*)wxObj);
+ pyObj = wxPyMake_wxShapeEvtHandler((wxShapeEvtHandler*)wxObj, false);
PyList_Append(pyList, pyObj);
node = node->GetNext();
}