Hello,
That is a strange one, because that code should in theory only be called
if the window name has changed, and that has nothing to do with the Peak
Finding dialog. So I'm not sure how that got triggered. I'm also not
sure why an exception might have been thrown in this function. I've put
some code in to protect against the KeyError, only the fact that the
KeyError exists is probably symptomatic of something more seriously gone
wrong somewhere, which will eventually manifest itself in some other way.
Wayne
On Tue, 2 Mar 2010, Mattias Brink wrote:
> Hi, after opening the Peak: peak finding popup and setting the sign of the
> extrema to search for, the software froze. Here is the error traceback:
>
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1403, in
> __call__
> return self.func(*args)
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/EditWindow.py", line
> 556, in setWindowName
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/api/Analysis.py", line 32037, in
> setName
> File
> "/Applications/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py",
> line 1157, in changedSpectrumWindowName
> popup = self.popups[old_popup_name]
> KeyError: 'window_HHN'
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1403, in
> __call__
> return self.func(*args)
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/EditWindow.py", line
> 556, in setWindowName
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/api/Analysis.py", line 32037, in
> setName
> File
> "/Applications/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py",
> line 1157, in changedSpectrumWindowName
> popup = self.popups[old_popup_name]
> KeyError: 'window_HCC'
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1403, in
> __call__
> return self.func(*args)
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/EditWindow.py", line
> 556, in setWindowName
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/api/Analysis.py", line 32037, in
> setName
> File
> "/Applications/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py",
> line 1157, in changedSpectrumWindowName
> popup = self.popups[old_popup_name]
> KeyError: 'window_HHC'
>
>
> Any idea what is going on?
>
> Thank you,
>
> Mattias Brink
>
|