Use a swig macro for generating the call to the _setCallbackInfo

function so it's easy to fiddle with, if needed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-11-14 22:03:54 +00:00
parent 13b955a755
commit c25f90f60c
76 changed files with 348 additions and 331 deletions

View File

@@ -293,7 +293,7 @@ IMP_PYCALLBACK_BOOL_TAG_pure(wxPyHtmlTagHandler, wxHtmlTagHandler, HandleTag);
%rename(HtmlTagHandler) wxPyHtmlTagHandler;
class wxPyHtmlTagHandler : public wxObject {
public:
%pythonAppend wxPyHtmlTagHandler "self._setCallbackInfo(self, HtmlTagHandler)"
%pythonAppend wxPyHtmlTagHandler setCallbackInfo(HtmlTagHandler)
wxPyHtmlTagHandler();
void _setCallbackInfo(PyObject* self, PyObject* _class);
@@ -334,7 +334,7 @@ IMP_PYCALLBACK_BOOL_TAG_pure(wxPyHtmlWinTagHandler, wxHtmlWinTagHandler, HandleT
%rename(HtmlWinTagHandler) wxPyHtmlWinTagHandler;
class wxPyHtmlWinTagHandler : public wxPyHtmlTagHandler {
public:
%pythonAppend wxPyHtmlWinTagHandler "self._setCallbackInfo(self, HtmlWinTagHandler)"
%pythonAppend wxPyHtmlWinTagHandler setCallbackInfo(HtmlWinTagHandler)
wxPyHtmlWinTagHandler();
void _setCallbackInfo(PyObject* self, PyObject* _class);
@@ -798,7 +798,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlFilter, wxHtmlFilter);
%rename(HtmlFilter) wxPyHtmlFilter;
class wxPyHtmlFilter : public wxObject {
public:
%pythonAppend wxPyHtmlFilter "self._setCallbackInfo(self, HtmlFilter)"
%pythonAppend wxPyHtmlFilter setCallbackInfo(HtmlFilter)
wxPyHtmlFilter();
void _setCallbackInfo(PyObject* self, PyObject* _class);
@@ -996,7 +996,7 @@ class wxPyHtmlWindow : public wxScrolledWindow //,
// public wxHtmlWindowMouseHelper
{
public:
%pythonAppend wxPyHtmlWindow "self._setCallbackInfo(self, HtmlWindow); self._setOORInfo(self)"
%pythonAppend wxPyHtmlWindow "self._setOORInfo(self);" setCallbackInfo(HtmlWindow)
%pythonAppend wxPyHtmlWindow() ""
%typemap(out) wxPyHtmlWindow*; // turn off this typemap