Better handling of the refcount of the wx.App object, so it now
destroyed when expected and also resets the current instance pointer returned by wx.GetApp(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -176,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"""
|
||||
|
Reference in New Issue
Block a user