X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d07d2bc9d05408c58b76c53a0a291915b88e5064..b8aab4d28d578817139f9038deec03e9609a50c8:/wxPython/src/_cshelp.i?ds=sidebyside diff --git a/wxPython/src/_cshelp.i b/wxPython/src/_cshelp.i index 30a9ad44fd..fbc13ac227 100644 --- a/wxPython/src/_cshelp.i +++ b/wxPython/src/_cshelp.i @@ -133,10 +133,12 @@ There are a couple of ways to invoke this behaviour implicitly: :see: `wx.ContextHelpButton` ", ""); +MustHaveApp(wxContextHelp); + class wxContextHelp : public wxObject { public: DocCtorStr( - wxContextHelp(wxWindow* window = NULL, bool doNow = True), + wxContextHelp(wxWindow* window = NULL, bool doNow = true), "Constructs a context help object, calling BeginContextHelp if doNow is true (the default). @@ -178,6 +180,8 @@ similar buttons. :see: `wx.ContextHelp`, `wx.ContextHelpButton` ", ""); +MustHaveApp(wxContextHelpButton); + class wxContextHelpButton : public wxBitmapButton { public: %pythonAppend wxContextHelpButton "self._setOORInfo(self)" @@ -204,11 +208,18 @@ application using wx.HelpProvider.Set().", ""); class wxHelpProvider { public: + + ~wxHelpProvider(); + + + %disownarg( wxHelpProvider *helpProvider ); + %newobject Set; DocDeclStr( static wxHelpProvider *, Set(wxHelpProvider *helpProvider), "Sset the current, application-wide help provider. Returns the previous one. Unlike some other classes, the help provider is not created on demand. This must be explicitly done by the application.", ""); + %cleardisown( wxHelpProvider *helpProvider ); DocDeclStr( static wxHelpProvider *, Get(), @@ -246,6 +257,7 @@ table of help strings will fill up and when window pointers are reused, the wrong help string will be found.", ""); + %pythonAppend Destroy "args[0].thisown = 0" %extend { void Destroy() { delete self; } } };