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:
@@ -211,10 +211,13 @@ class TestPanel(wx.Panel):
|
||||
|
||||
|
||||
def OnButton(self, evt):
|
||||
win = TestFrame(self, self.log)
|
||||
win.Show(True)
|
||||
self.win = TestFrame(self, self.log)
|
||||
self.win.Show(True)
|
||||
|
||||
|
||||
def ShutdownDemo(self):
|
||||
self.win.Close()
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user