Patches from Tomo

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-01-20 23:26:57 +00:00
parent 90548138ac
commit 317d155040
3 changed files with 15 additions and 17 deletions

View File

@@ -27,8 +27,9 @@ class TestPanel(wx.Panel):
self.OnChangeMonth()
def OnButton(self, evt):
self.cal.Destroy()
self.cal = None
if self.cal is not None:
self.cal.Destroy()
self.cal = None
def OnCalSelected(self, evt):
self.log.write('OnCalSelected: %s\n' % evt.GetDate())