From e058867b94a4cec792377318b41e304797aeeaa2 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 7 May 2004 17:14:15 +0000 Subject: [PATCH] reSWIGged git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/contrib/stc/gtk/stc.py | 6 +----- wxPython/contrib/stc/mac/stc.py | 6 +----- wxPython/contrib/stc/msw/stc.py | 6 +----- wxPython/contrib/xrc/gtk/xrc_wrap.cpp | 8 ++++++-- wxPython/contrib/xrc/mac/xrc_wrap.cpp | 8 ++++++-- wxPython/contrib/xrc/msw/xrc_wrap.cpp | 8 ++++++-- wxPython/src/gtk/_misc.py | 4 ++++ wxPython/src/gtk/_windows_wrap.cpp | 16 ++++++++++++---- wxPython/src/mac/_misc.py | 4 ++++ wxPython/src/mac/_windows_wrap.cpp | 16 ++++++++++++---- wxPython/src/msw/_misc.py | 4 ++++ wxPython/src/msw/_windows_wrap.cpp | 16 ++++++++++++---- 12 files changed, 69 insertions(+), 33 deletions(-) diff --git a/wxPython/contrib/stc/gtk/stc.py b/wxPython/contrib/stc/gtk/stc.py index 90b8550b78..554c1a83ba 100644 --- a/wxPython/contrib/stc/gtk/stc.py +++ b/wxPython/contrib/stc/gtk/stc.py @@ -1985,11 +1985,7 @@ class StyledTextCtrl(_core.Control): return _stc.StyledTextCtrl_DocumentEndExtend(*args, **kwargs) def PageUp(*args, **kwargs): - """ - PageUp(self) - - This is just a wrapper for ScrollPages(-1). - """ + """PageUp(self)""" return _stc.StyledTextCtrl_PageUp(*args, **kwargs) def PageUpExtend(*args, **kwargs): diff --git a/wxPython/contrib/stc/mac/stc.py b/wxPython/contrib/stc/mac/stc.py index 90b8550b78..554c1a83ba 100644 --- a/wxPython/contrib/stc/mac/stc.py +++ b/wxPython/contrib/stc/mac/stc.py @@ -1985,11 +1985,7 @@ class StyledTextCtrl(_core.Control): return _stc.StyledTextCtrl_DocumentEndExtend(*args, **kwargs) def PageUp(*args, **kwargs): - """ - PageUp(self) - - This is just a wrapper for ScrollPages(-1). - """ + """PageUp(self)""" return _stc.StyledTextCtrl_PageUp(*args, **kwargs) def PageUpExtend(*args, **kwargs): diff --git a/wxPython/contrib/stc/msw/stc.py b/wxPython/contrib/stc/msw/stc.py index 554c1a83ba..67d60bb562 100644 --- a/wxPython/contrib/stc/msw/stc.py +++ b/wxPython/contrib/stc/msw/stc.py @@ -1993,11 +1993,7 @@ class StyledTextCtrl(_core.Control): return _stc.StyledTextCtrl_PageUpExtend(*args, **kwargs) def PageDown(*args, **kwargs): - """ - PageDown(self) - - This is just a wrapper for ScrollPages(1). - """ + """PageDown(self)""" return _stc.StyledTextCtrl_PageDown(*args, **kwargs) def PageDownExtend(*args, **kwargs): diff --git a/wxPython/contrib/xrc/gtk/xrc_wrap.cpp b/wxPython/contrib/xrc/gtk/xrc_wrap.cpp index 723abd9834..b253d2e678 100644 --- a/wxPython/contrib/xrc/gtk/xrc_wrap.cpp +++ b/wxPython/contrib/xrc/gtk/xrc_wrap.cpp @@ -1227,7 +1227,9 @@ static PyObject *_wrap_XmlResource_LoadDialog(PyObject *self, PyObject *args, Py wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 0); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp3) delete arg3; @@ -1325,7 +1327,9 @@ static PyObject *_wrap_XmlResource_LoadPanel(PyObject *self, PyObject *args, PyO wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 0); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp3) delete arg3; diff --git a/wxPython/contrib/xrc/mac/xrc_wrap.cpp b/wxPython/contrib/xrc/mac/xrc_wrap.cpp index 723abd9834..b253d2e678 100644 --- a/wxPython/contrib/xrc/mac/xrc_wrap.cpp +++ b/wxPython/contrib/xrc/mac/xrc_wrap.cpp @@ -1227,7 +1227,9 @@ static PyObject *_wrap_XmlResource_LoadDialog(PyObject *self, PyObject *args, Py wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 0); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp3) delete arg3; @@ -1325,7 +1327,9 @@ static PyObject *_wrap_XmlResource_LoadPanel(PyObject *self, PyObject *args, PyO wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 0); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp3) delete arg3; diff --git a/wxPython/contrib/xrc/msw/xrc_wrap.cpp b/wxPython/contrib/xrc/msw/xrc_wrap.cpp index 723abd9834..b253d2e678 100644 --- a/wxPython/contrib/xrc/msw/xrc_wrap.cpp +++ b/wxPython/contrib/xrc/msw/xrc_wrap.cpp @@ -1227,7 +1227,9 @@ static PyObject *_wrap_XmlResource_LoadDialog(PyObject *self, PyObject *args, Py wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 0); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp3) delete arg3; @@ -1325,7 +1327,9 @@ static PyObject *_wrap_XmlResource_LoadPanel(PyObject *self, PyObject *args, PyO wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 0); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp3) delete arg3; diff --git a/wxPython/src/gtk/_misc.py b/wxPython/src/gtk/_misc.py index 4a9a226e6b..a221887ce5 100644 --- a/wxPython/src/gtk/_misc.py +++ b/wxPython/src/gtk/_misc.py @@ -914,6 +914,8 @@ class PyTipProvider(TipProvider): self.this = newobj.this self.thisown = 1 del newobj.thisown + self._setCallbackInfo(self, PyTipProvider) + def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _misc_.PyTipProvider__setCallbackInfo(*args, **kwargs) @@ -4829,6 +4831,8 @@ class DropSource(object): self.this = newobj.this self.thisown = 1 del newobj.thisown + self._setCallbackInfo(self, DropSource, 0) + def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)""" return _misc_.DropSource__setCallbackInfo(*args, **kwargs) diff --git a/wxPython/src/gtk/_windows_wrap.cpp b/wxPython/src/gtk/_windows_wrap.cpp index 6c39df9739..add78b74b8 100644 --- a/wxPython/src/gtk/_windows_wrap.cpp +++ b/wxPython/src/gtk/_windows_wrap.cpp @@ -1332,7 +1332,9 @@ static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwarg wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp6) delete arg6; @@ -1362,7 +1364,9 @@ static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kw wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); + { + resultobj = wxPyMake_wxObject(result); + } return resultobj; fail: return NULL; @@ -4008,7 +4012,9 @@ static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwar wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp3) delete arg3; @@ -4046,7 +4052,9 @@ static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *k wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); + { + resultobj = wxPyMake_wxObject(result); + } return resultobj; fail: return NULL; diff --git a/wxPython/src/mac/_misc.py b/wxPython/src/mac/_misc.py index d233be32fd..df382a6538 100644 --- a/wxPython/src/mac/_misc.py +++ b/wxPython/src/mac/_misc.py @@ -914,6 +914,8 @@ class PyTipProvider(TipProvider): self.this = newobj.this self.thisown = 1 del newobj.thisown + self._setCallbackInfo(self, PyTipProvider) + def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _misc_.PyTipProvider__setCallbackInfo(*args, **kwargs) @@ -4837,6 +4839,8 @@ class DropSource(object): self.this = newobj.this self.thisown = 1 del newobj.thisown + self._setCallbackInfo(self, DropSource, 0) + def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)""" return _misc_.DropSource__setCallbackInfo(*args, **kwargs) diff --git a/wxPython/src/mac/_windows_wrap.cpp b/wxPython/src/mac/_windows_wrap.cpp index e4c6f24698..23c605df14 100644 --- a/wxPython/src/mac/_windows_wrap.cpp +++ b/wxPython/src/mac/_windows_wrap.cpp @@ -1327,7 +1327,9 @@ static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwarg wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp6) delete arg6; @@ -1357,7 +1359,9 @@ static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kw wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); + { + resultobj = wxPyMake_wxObject(result); + } return resultobj; fail: return NULL; @@ -4122,7 +4126,9 @@ static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwar wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp3) delete arg3; @@ -4160,7 +4166,9 @@ static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *k wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); + { + resultobj = wxPyMake_wxObject(result); + } return resultobj; fail: return NULL; diff --git a/wxPython/src/msw/_misc.py b/wxPython/src/msw/_misc.py index d233be32fd..df382a6538 100644 --- a/wxPython/src/msw/_misc.py +++ b/wxPython/src/msw/_misc.py @@ -914,6 +914,8 @@ class PyTipProvider(TipProvider): self.this = newobj.this self.thisown = 1 del newobj.thisown + self._setCallbackInfo(self, PyTipProvider) + def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _misc_.PyTipProvider__setCallbackInfo(*args, **kwargs) @@ -4837,6 +4839,8 @@ class DropSource(object): self.this = newobj.this self.thisown = 1 del newobj.thisown + self._setCallbackInfo(self, DropSource, 0) + def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)""" return _misc_.DropSource__setCallbackInfo(*args, **kwargs) diff --git a/wxPython/src/msw/_windows_wrap.cpp b/wxPython/src/msw/_windows_wrap.cpp index 3a492f8f66..25a64cbbf2 100644 --- a/wxPython/src/msw/_windows_wrap.cpp +++ b/wxPython/src/msw/_windows_wrap.cpp @@ -1332,7 +1332,9 @@ static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwarg wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp6) delete arg6; @@ -1362,7 +1364,9 @@ static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kw wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); + { + resultobj = wxPyMake_wxObject(result); + } return resultobj; fail: return NULL; @@ -4070,7 +4074,9 @@ static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwar wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); + { + resultobj = wxPyMake_wxObject(result); + } { if (temp3) delete arg3; @@ -4108,7 +4114,9 @@ static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *k wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); + { + resultobj = wxPyMake_wxObject(result); + } return resultobj; fail: return NULL; -- 2.45.2