Hello,
I tried this and it seemed to "work" for me, where "work" means that the
code deletes the extra row(s). Now it looks like for you that it fell
over when trying to delete the extra row(s). So this might be a timing
issue. But the more general question is whether the extra horizontal
row(s) should remain. It sounds like you would prefer that and I'm not
sure if Tim intentionally didn't want that or (more likely) this is just
an unexpected side effect. (He's not here today.)
Wayne
On Tue, 25 Mar 2008, [ISO-8859-1] Brian Smith wrote:
> Hi,
> Couldn't remember whether Link Seq Spin Systems is supposed to work with a
> target window that posesses horizontal separators? I'm getting the
> traceback below.
>
> >>> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__
> return self.func(*args)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/memops/gui/ScrolledMatrix.py", line 6
> 59, in mouseClick
> self.selectCell(row,col)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/memops/gui/ScrolledMatrix.py", line 1
> 688, in selectCell
> self.callback(self.currentObject, objRow,objCol)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/LinkSeqSpinSystemsPop
> up.py", line 1290, in selectSpinSystem
> self.findMatches()
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/LinkSeqSpinSystemsPop
> up.py", line 991, in findMatches
> self.updateMatches()
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/LinkSeqSpinSystemsPop
> up.py", line 794, in updateMatches
> displayStrips(self.guiParent, positions, orthoPositions=None, spectrum=None,
> window=self.matchWindow)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowBasic.py", line
> 1745, in displayStrips
> popup.deleteRow()
> File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/WindowPopup.py", line
> 4996, in deleteRow
> self.scrolled_window.deleteRow(row)
> File "/usr/local/ccpnmr/ccpnmr1.0/python/memops/gui/ScrolledWindow.py", line 1
> 967, in deleteRow
> rects = self.corner_canvas.view_rects[row]
> IndexError: list index out of range
>
|