Tim says:
Fixed, and in the updates. The bug was introduced when the selected
resonances table was added. In this popup, if self.resonances is set it
knows that there is a selection, rather than a shift list to display. The
trouble was when there was an empty list, which is actually a valid
selection, esp. after deletion. The classic "if val" vs "if val is not
None".
Wayne
On Fri, 12 Feb 2010, Pryank Patel wrote:
>
> Hi all,
> Apologies if this may have been posted previously, I could not find any
> previous message on this. I have just deleted a resonance, by going through
> the 'M:Molecule:Atom Browser' popup, clicking on an atom in the chain (any
> chain), then clicking 'Show Resonances', then in the "Selected Resonances"
> windows I selected a resonance and deleted it. Then, when I click on another
> atom in the Atom Browser popup, the following message appears:
>
>
>>>> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 1410, in __call__
> return self.func(*args)
> File
> "/home/pryank/programs/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/BrowseAtoms.py",
> line 381, in showResonances
> self.parent.viewSelectedResonances(resonances, self.shiftList)
> File
> "/home/pryank/programs/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py",
> line 1680, in viewSelectedResonances
> popup.update(resonances, shiftList)
> File "ccpnmr2.1/python/ccpnmr/analysis/popups/BrowseResonances.py", line
> 1111, in update
> File "ccpnmr2.1/python/ccpnmr/analysis/popups/BrowseResonances.py", line
> 486, in updateChains
> File "ccpnmr2.1/python/memops/gui/BasePopup.py", line 393, in __getattr__
> AttributeError: BrowseResonancesPopup instance has no attribute
> 'chainPulldown'
>
> This error is not project dependent, since the same thing happens in another
> project. It only seems to occur when a resonance is deleted using this
> method.
>
> Best wishes,
> Pryank
>
|