X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd9f7fea29e3f8bb61861f52984b7943512346ac..a9a04486a2fc7be11a42343070ff8dd859618c46:/wxPython/src/_tipdlg.i diff --git a/wxPython/src/_tipdlg.i b/wxPython/src/_tipdlg.i index a8b496f4d9..2713eaf6e5 100644 --- a/wxPython/src/_tipdlg.i +++ b/wxPython/src/_tipdlg.i @@ -66,10 +66,10 @@ IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); // Now let SWIG know about it class wxPyTipProvider : public wxTipProvider { public: + %pythonAppend wxPyTipProvider "self._setCallbackInfo(self, PyTipProvider)" wxPyTipProvider(size_t currentTip); void _setCallbackInfo(PyObject* self, PyObject* _class); - %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyTipProvider)" }; @@ -81,11 +81,13 @@ public: // not, the dialog on startup depending on its value, not this class). // // The function returns True if this checkbox is checked, False otherwise. -bool wxShowTip(wxWindow *parent, wxTipProvider *tipProvider, bool showAtStartup = True); +MustHaveApp(wxShowTip); +bool wxShowTip(wxWindow *parent, wxTipProvider *tipProvider, bool showAtStartup = true); // a function which returns an implementation of wxTipProvider using the // specified text file as the source of tips (each line is a tip). %newobject wxCreateFileTipProvider; +MustHaveApp(wxCreateFileTipProvider); wxTipProvider* wxCreateFileTipProvider(const wxString& filename, size_t currentTip);