X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..962162620ff8b78f4d25c7f4ccec88ce071dfb2b:/wxPython/src/_tipwin.i?ds=sidebyside diff --git a/wxPython/src/_tipwin.i b/wxPython/src/_tipwin.i index 5c908e2587..1cb3e5cc5e 100644 --- a/wxPython/src/_tipwin.i +++ b/wxPython/src/_tipwin.i @@ -31,15 +31,14 @@ class wxTipWindow : #endif { public: - %addtofunc wxTipWindow "self._setOORInfo(self)" + %pythonAppend wxTipWindow "self._setOORInfo(self)" %extend { wxTipWindow(wxWindow *parent, - const wxString* text, + const wxString& text, wxCoord maxLength = 100, wxRect* rectBound = NULL) { - wxString tmp = *text; - return new wxTipWindow(parent, tmp, maxLength, NULL, rectBound); + return new wxTipWindow(parent, text, maxLength, NULL, rectBound); } }