标题: jmgrep.py hanging at self.Destroy() [打印本页] 作者: mjus 时间: 2009-08-31 23:47 标题: jmgrep.py hanging at self.Destroy() Hi, folks,
I found this tool (see attached) from WWW and studied it for wxpython. The author stated
it ran on W2k with python 2.5.2. However I ran it on WinXP with python 2.5.4, it got hanging.
When I try to find a pattern from some text files in a particular directory and it gets hits ( some
patterns found over the files). then from GUI, I select File|Quit to exit, it gets hanging -- From
the Dos console window, Even I use ctrl+C, ctrl+Z, and ctrl+D to exit invalid. So I trace through
the code, I find that it gets hanging in function def OnCloseWindow(self, event): self.Destroy() .
-- for this one line statement function, I have no idea how to debug self.Destroy() -- since it gets
hanging. What my understanding the issue is One: it is Python version bug. Two: the code design
has a bug that's hard to find ( I put print statement before and after self.Destroy(), it prints many
times, I don't know why ).
Does anybody know how to workaround it ? Or Explanations are much appreciated. Thanks !!!