X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f87da7220560e2f1a57e4e291cc75341f0ff1abe..98e665d3b02207e8e3dcddd210926a51c04305e4:/wxPython/src/_window.i diff --git a/wxPython/src/_window.i b/wxPython/src/_window.i index b446de9d06..d6d9ad156e 100644 --- a/wxPython/src/_window.i +++ b/wxPython/src/_window.i @@ -26,8 +26,8 @@ MAKE_CONST_WXSTRING(PanelNameStr); class wxWindow : public wxEvtHandler { public: - %addtofunc wxWindow "self._setOORInfo(self)" - %addtofunc wxWindow() "" + %pythonAppend wxWindow "self._setOORInfo(self)" + %pythonAppend wxWindow() "" wxWindow(wxWindow* parent, const wxWindowID id, const wxPoint& pos = wxDefaultPosition, @@ -683,8 +683,10 @@ public: // set/retrieve the drop target associated with this window (may be // NULL; it's owned by the window and will be deleted by it) - %addtofunc SetDropTarget "args[1].thisown = 0" + %apply SWIGTYPE *DISOWN { wxPyDropTarget *dropTarget }; virtual void SetDropTarget( wxPyDropTarget *dropTarget ); + %clear wxPyDropTarget *dropTarget; + virtual wxPyDropTarget *GetDropTarget() const; #ifdef __WXMSW__ // TODO: should I drop-kick this?