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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user