%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.", "");
~wxPyApp();
+ // Turn it back on again
+ %typemap(out) wxPyApp* { $result = wxPyMake_wxObject($1, $owner); }
+
+
void _setCallbackInfo(PyObject* self, PyObject* _class);
%}
-DocStr(wxGetApp,
- "Return a reference to the current wx.App object.", "");
-%inline %{
- wxPyApp* wxGetApp() {
- return (wxPyApp*)wxTheApp;
- }
+DocDeclStrName(
+ wxPyApp* , wxPyGetApp(),
+ "Return a reference to the current wx.App object.", "",
+ GetApp);
+%{
+ wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
%}
+
//---------------------------------------------------------------------------
// Include some extra wxApp related python code here