Use Bind for OnCloseWindow

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-05-17 05:13:35 +00:00
parent add7cadd99
commit 7e8142e986

View File

@@ -27,7 +27,7 @@ class PyOnDemandOutputWindow:
style=wx.TE_MULTILINE|wx.TE_READONLY)
self.text.AppendText(st)
self.frame.Show(True)
EVT_CLOSE(self.frame, self.OnCloseWindow)
self.frame.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
def OnCloseWindow(self, event):