X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..7599afcd67e2b96df0f335700bcdb809aaa27b41:/wxPython/src/_tipwin.i 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); } }