]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_app_ex.py
corrected docstring
[wxWidgets.git] / wxPython / src / _app_ex.py
index 221f313d6b658222c399078ba1acd9af89fd7a40..98b35efc212a94eec07311750638d9c861e384f3 100644 (file)
@@ -165,6 +165,9 @@ your Mac."""
         if redirect:
             self.RedirectStdio(filename)
 
+        # Use Python's install prefix as the default  
+        wx.StandardPaths.Get().SetInstallPrefix(_sys.prefix)
+
         # This finishes the initialization of wxWindows and then calls
         # the OnInit that should be present in the derived class
         self._BootstrapApp()
@@ -173,9 +176,12 @@ your Mac."""
     def __del__(self):
         try:
             self.RestoreStdio()  # Just in case the MainLoop was overridden
-        except:
-            pass
+        finally:
+            wx.PyApp.__del__(self)
 
+    def Destroy(self):
+        wx.PyApp.Destroy(self)
+        self.thisown = 0
 
     def SetTopWindow(self, frame):
         """Set the \"main\" top level window"""