Moved the cleanup code to an EVT_WINDOW_DESTROY handler.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -56,13 +56,6 @@ class DoodleFrame(wxFrame):
|
||||
self.SetAutoLayout(true)
|
||||
self.SetSizer(box)
|
||||
|
||||
EVT_CLOSE(self, self.OnCloseWindow)
|
||||
|
||||
|
||||
def OnCloseWindow(self, event):
|
||||
self.doodle.Cleanup()
|
||||
self.Destroy()
|
||||
|
||||
|
||||
def SaveFile(self):
|
||||
if self.filename:
|
||||
|
Reference in New Issue
Block a user