From: Robin Dunn Date: Fri, 24 Feb 2006 18:14:24 +0000 (+0000) Subject: Workaround the lack of a wx.EVT_FIND_CLOSE on Windows when doing a X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b30b49e993ddbd3e2f8dde0dcc5d5ade03dc0578 Workaround the lack of a wx.EVT_FIND_CLOSE on Windows when doing a normal search. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/py/frame.py b/wxPython/wx/py/frame.py index 9c05c4787d..58b760e4d2 100644 --- a/wxPython/wx/py/frame.py +++ b/wxPython/wx/py/frame.py @@ -503,6 +503,8 @@ class Frame(wx.Frame): else: win = wx.Window.FindFocus() win.DoFindNext(self.findData, self.findDlg) + if self.findDlg is not None: + self.OnFindClose(None) def OnFindClose(self, event): self.findDlg.Destroy()