Ta, that's dumb, it should be
self.checkDeleteAxisPanel(axisPanel)
and I decided to add in a condition in the if statement to make it:
if (axisPanel and not axisPanel.isDeleted):
self.checkDeleteAxisPanel(axisPanel)
although that isDeleted check should never be necessary (if all else is
working).
Wayne
On Thu, 9 Sep 2004, Brian Smith wrote:
> Hi,
>
> I tried adding an axis to a window, got it wrong and tried to
> delete it again. I got the following traceback:
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/lib64/python2.2/lib-tk/Tkinter.py", line 1316, in __call__
> return apply(self.func, args)
> File
> "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditWindowPopup.py",
> line 517, in deleteAxis
> self.checkDeleteAxisPanel(self, axisPanel)
> TypeError: checkDeleteAxisPanel() takes exactly 2 arguments (3 given)
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/lib64/python2.2/lib-tk/Tkinter.py", line 1316, in __call__
> return apply(self.func, args)
> File
> "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditWindowPopup.py",
> line 517, in deleteAxis
> self.checkDeleteAxisPanel(self, axisPanel)
> TypeError: checkDeleteAxisPanel() takes exactly 2 arguments (3 given)
>
>
>
> --
> Dr. Brian O. Smith ---------------------- B.Smith at bio.gla.ac.uk
> Division of Biochemistry & Molecular Biology,
> Institute Biomedical & Life Sciences,
> Joseph Black Building, University of Glasgow, Glasgow G12 8QQ, UK.
> Tel: 0141 330 5167/6459 Fax: 0141 330 8640
>
|