]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_tipwin.i
Version
[wxWidgets.git] / wxPython / src / _tipwin.i
index 5c908e258783435bcab117e89ec65cd9bd733e83..15e52ead463aa4a1140542f1aca53f388f5a2580 100644 (file)
@@ -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);
         }
     }