X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64e8a1f072f09865b57ce399fa4401009e08d314..856bf319b572699cc31ceef8cf78d1b9770cacf9:/wxPython/src/_window.i diff --git a/wxPython/src/_window.i b/wxPython/src/_window.i index 9dec8acb35..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, @@ -660,7 +660,7 @@ public: wxString GetHelpText() const; - +#ifndef __WXX11__ // tooltips // -------- @@ -673,22 +673,27 @@ public: // get the associated tooltip or NULL if none wxToolTip* GetToolTip() const; // LINK ERROR --> wxString GetToolTipText() const; +#endif - + +#ifndef __WXX11__ // drag and drop // ------------- // 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? void DragAcceptFiles(bool accept); #endif - +#endif + // constraints and sizers // ---------------------- @@ -807,7 +812,7 @@ wxWindow* wxFindWindowByLabel( const wxString& label, win->SubclassWin(hWnd); return win; #else - PyErr_SetNone(PyExc_NotImplementedError); + wxPyRaiseNotImplemented(); return NULL; #endif }