Add ShutdownDemo to better clean up when switching to another sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-06-07 18:44:14 +00:00
parent d2a924d5f2
commit 769c0c934f

View File

@@ -211,10 +211,13 @@ class TestPanel(wx.Panel):
def OnButton(self, evt): def OnButton(self, evt):
win = TestFrame(self, self.log) self.win = TestFrame(self, self.log)
win.Show(True) self.win.Show(True)
def ShutdownDemo(self):
self.win.Close()
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------