X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7722248d7510121367c9d4db7af1156197c26e82..dd33b115d6fed7df33b76597cf52b0db7d88bdeb:/wxPython/src/_dnd.i diff --git a/wxPython/src/_dnd.i b/wxPython/src/_dnd.i index 8e2ce47ab7..15f0f18777 100644 --- a/wxPython/src/_dnd.i +++ b/wxPython/src/_dnd.i @@ -121,7 +121,9 @@ IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); %name(DropTarget) class wxPyDropTarget // : public wxDropTarget { public: - %addtofunc wxPyDropTarget "if args: args[1].thisown = 0; self._setCallbackInfo(self, DropTarget)" + %addtofunc wxPyDropTarget + "if args: args[0].thisown = 0; + self._setCallbackInfo(self, DropTarget)" wxPyDropTarget(wxDataObject *dataObject = NULL); void _setCallbackInfo(PyObject* self, PyObject* _class);