Print

Print


Hello,

I can't reproduce but I suspect it's dependent on how other dialogs were 
opened and possibly used and possibly other context-dependent things.  So 
the errors are coming from callbacks (notifiers) to widgets in other 
dialogs (than the Experiment one) and one of them evidently thinks that 
some sub-widget is already deleted (or something).  Note that these 
callbacks occur at the end of deletion so the experiment is deleted, it's 
just that the Experiment GUI was not updated (which is not ideal of 
course).

But I think there is also another bug in that Experiment dialog, namely 
that if you try to delete several experiments in one go it will only 
delete every other one because of the (naughty) way the looping is set up. 
So I'll fix that (after I check with Tim that my understanding of the loop 
is correct).

Wayne

On Wed, 24 Feb 2010, Patrick van der Wel wrote:

> When trying to delete the two latest experiments, I got the following 
> traceback (and no deletion of the exp's):
>
> 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/EditExperiment.py", 
> line 857, in deleteExperiment
> File "ccpnmr/ccpnmr2.1/python/memops/api/Implementation.py", line 4234, in 
> delete
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/ExptSpectrumRows.py", 
> line 116, in setExperiments
> File "ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/ExperimentList.py", 
> line 81, in setExperiments
> File "ccpnmr/ccpnmr2.1/python/memops/gui/PulldownMenu.py", line 397, in 
> replace
> File "ccpnmr/ccpnmr2.1/python/memops/gui/Menu.py", line 215, in delete
> File "ccpnmr/ccpnmr2.1/python/memops/gui/Menu.py", line 188, in deleteIndex
> File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 2668, in 
> entryconfigure
>   return self._configure(('entryconfigure', index), cnf, kw)
> File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1181, in 
> _configure
>   self.tk.call(_flatten((self._w, cmd)))):
> TclError: invalid command name 
> ".87445832.93630336.93634768.93634848.93635368.93635808"