]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/wx.i
suppress an assert when a combobox receives WM_KILLFOCUS while it is being destroyed
[wxWidgets.git] / wxPython / src / wx.i
index 27d5a3d51a43db186df05acb31f49daacbef2a4e..d4a129b90c6a6e52f8ac2f710aac1b86047e3dae 100644 (file)
@@ -108,12 +108,12 @@ public:
 
 %inline %{
     wxPyApp* wxGetApp() {
-        return wxPythonApp;
+        //return wxPythonApp;
+        return (wxPyApp*)wxTheApp;
     }
 %}
 
 
-
 //----------------------------------------------------------------------
 // this is used to cleanup after wxWindows when Python shuts down.
 
@@ -272,4 +272,3 @@ static wxPyCoreAPI API = {
 
 %pragma(python) include="_extras.py";
 
-