X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11a9b49de9f487938312e63645c371d01fff25d0..6caa0f5cd18fe9fb39c207d5f31fa5633479a822:/wxPython/src/_dnd.i diff --git a/wxPython/src/_dnd.i b/wxPython/src/_dnd.i index 9ed73d03ad..7552e0a1c1 100644 --- a/wxPython/src/_dnd.i +++ b/wxPython/src/_dnd.i @@ -58,7 +58,7 @@ IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); %rename(DropSource) wxPyDropSource; class wxPyDropSource { public: - %pythonAppend wxPyDropSource "self._setCallbackInfo(self, DropSource, 0)" + %pythonAppend wxPyDropSource setCallbackInfo(DropSource) #ifndef __WXGTK__ wxPyDropSource(wxWindow *win, const wxCursor © = wxNullCursor, @@ -71,7 +71,7 @@ public: const wxIcon& none = wxNullIcon); #endif - void _setCallbackInfo(PyObject* self, PyObject* _class, int incref); + void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=0); ~wxPyDropSource(); // set the data which is transfered by drag and drop @@ -138,8 +138,7 @@ IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); class wxPyDropTarget // : public wxDropTarget { public: - %pythonAppend wxPyDropTarget - "self._setCallbackInfo(self, DropTarget)" + %pythonAppend wxPyDropTarget setCallbackInfo(DropTarget) %disownarg( wxDataObject *dataObject ); @@ -220,7 +219,7 @@ IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); %rename(TextDropTarget) wxPyTextDropTarget; class wxPyTextDropTarget : public wxPyDropTarget { public: - %pythonAppend wxPyTextDropTarget "self._setCallbackInfo(self, TextDropTarget)" + %pythonAppend wxPyTextDropTarget setCallbackInfo(TextDropTarget) wxPyTextDropTarget(); void _setCallbackInfo(PyObject* self, PyObject* _class); @@ -289,7 +288,7 @@ IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); class wxPyFileDropTarget : public wxPyDropTarget { public: - %pythonAppend wxPyFileDropTarget "self._setCallbackInfo(self, FileDropTarget)" + %pythonAppend wxPyFileDropTarget setCallbackInfo(FileDropTarget) wxPyFileDropTarget(); void _setCallbackInfo(PyObject* self, PyObject* _class);