X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c92d92835d428582eadc8c68f885577634d89413..02161c7c81e12685d04a1f73e714ca52ad858f6c:/wxPython/src/_app.i diff --git a/wxPython/src/_app.i b/wxPython/src/_app.i index fc25d1c8c1..1f9f92bacb 100644 --- a/wxPython/src/_app.i +++ b/wxPython/src/_app.i @@ -50,6 +50,7 @@ public: %pythonAppend wxPyApp "self._setCallbackInfo(self, PyApp) self._setOORInfo(self)"; + %typemap(out) wxPyApp*; // turn off this typemap DocStr(wxPyApp, "Create a new application object, starting the bootstrap process.", ""); @@ -62,6 +63,10 @@ public: ~wxPyApp(); + // Turn it back on again + %typemap(out) wxPyApp* { $result = wxPyMake_wxObject($1, $owner); } + + void _setCallbackInfo(PyObject* self, PyObject* _class); @@ -110,7 +115,7 @@ during each event loop iteration.", ""); DocDeclStr( - virtual bool, Yield(bool onlyIfNeeded = False), + virtual bool, Yield(bool onlyIfNeeded = false), "Process all currently pending events right now, instead of waiting until return to the event loop. It is an error to call ``Yield`` recursively unless the value of ``onlyIfNeeded`` is True. @@ -302,7 +307,7 @@ DocDeclStr( DocDeclStr( - bool, wxSafeYield(wxWindow* win=NULL, bool onlyIfNeeded=False), + bool, wxSafeYield(wxWindow* win=NULL, bool onlyIfNeeded=false), "This function is similar to `wx.Yield`, except that it disables the user input to all program windows before calling `wx.Yield` and re-enables it again afterwards. If ``win`` is not None, this window