]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_app.i
wxUSE_STL/wxArrayString fixes.
[wxWidgets.git] / wxPython / src / _app.i
index d28c88992cb22f441c665d59d77442c0806f0a07..549ca80c44771759e7174be2bd8cfa31117195e9 100644 (file)
@@ -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);
 
 
@@ -334,15 +339,16 @@ Python shuts down.", "");
 %} 
 
 
-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