X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03a2f00c1a15b3cf30492ebf091f870a0089186f..777e547f2cf471e683abd71c3d5f0e0f699da176:/wxPython/src/_tipdlg.i diff --git a/wxPython/src/_tipdlg.i b/wxPython/src/_tipdlg.i index ef7d617e02..37ac6959b2 100644 --- a/wxPython/src/_tipdlg.i +++ b/wxPython/src/_tipdlg.i @@ -43,6 +43,9 @@ public: // modify the tip as soon as it is read. If return wxEmptyString, then // the tip is skipped, and the next one is read. virtual wxString PreprocessTip(const wxString& tip); + + %property(CurrentTip, GetCurrentTip, doc="See `GetCurrentTip`"); + %property(Tip, GetTip, doc="See `GetTip`"); }; @@ -81,11 +84,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);