X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da32eb53cbe7947f3f4599d7b6b5caa21a68d27f..c1718b2c8a1ae4e7f2a6f421cc398a21dfdb07cb:/wxPython/src/_dnd.i diff --git a/wxPython/src/_dnd.i b/wxPython/src/_dnd.i index cf7c3c84b9..dfa264c4ae 100644 --- a/wxPython/src/_dnd.i +++ b/wxPython/src/_dnd.i @@ -57,6 +57,7 @@ IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); %name(DropSource) class wxPyDropSource { public: + %pythonAppend wxPyDropSource "self._setCallbackInfo(self, DropSource, 0)" #ifndef __WXGTK__ wxPyDropSource(wxWindow *win, const wxCursor © = wxNullCursor, @@ -70,14 +71,13 @@ public: #endif void _setCallbackInfo(PyObject* self, PyObject* _class, int incref); - %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxDropSource, 0)" ~wxPyDropSource(); // set the data which is transfered by drag and drop void SetData(wxDataObject& data); - + wxDataObject *GetDataObject(); - + // set the icon corresponding to given drag result void SetCursor(wxDragResult res, const wxCursor& cursor); @@ -216,7 +216,7 @@ public: bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames) { - bool rval = False; + bool rval = false; bool blocked = wxPyBeginBlockThreads(); if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { PyObject* list = wxArrayString2PyList_helper(filenames);