X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..32485259c1342115488d219776dfebeb3d4d81b1:/wxPython/src/_tipwin.i diff --git a/wxPython/src/_tipwin.i b/wxPython/src/_tipwin.i index 5c908e2587..15e52ead46 100644 --- a/wxPython/src/_tipwin.i +++ b/wxPython/src/_tipwin.i @@ -23,6 +23,8 @@ %newgroup; +MustHaveApp(wxTipWindow); + class wxTipWindow : #ifndef __WXMAC__ public wxPyPopupTransientWindow @@ -31,15 +33,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); } }