> also, trying to run macros from the menu returns:
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/my_progs/ccpnmr/python2.2/lib/python2.2/lib-tk/Tkinter.py", line
> 1316, in __call__
> return apply(self.func, args)
> File "/usr/my_progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisPopup.py",
> line 674, in <lambda>
> menu.add_command(label=macro.name, command=lambda m=macro: self.runMacro(m))
> File "/usr/my_progs/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/AnalysisPopup.py",
> line 688, in runMacro
> command =
> Command(self.argumentServer,macro.name,macro.module,macro.function)
> NameError: global name 'Command' is not defined
Ah. There's an import missing. Just add:
from ccp.general.Command import Command
to the top of AnalysisPopup after the import statements.
Also fixed for the next release.
Tim
-------------------------------------------------------------------------------
Dr Tim Stevens Email: [log in to unmask]
Department of Biochemistry [log in to unmask]
University of Cambridge Phone: +44 1223 766022 (office)
80 Tennis Court Road +44 7816 338275 (mobile)
Old Addenbrooke's Site +44 1223 364613 (home)
Cambridge CB2 1GA WWWeb: http://www.bio.cam.ac.uk/~tjs23
United Kingdom http://www.pantonia.co.uk
-------------------------------------------------------------------------------
------ +NH3CH(CH(CH3)OH)C(O)NHCH(CH(CH3)CH2CH3)C(O)NHCH(CH2CH2SCH3)CO2- -------
-------------------------------------------------------------------------------
|