> def test(argServer=None):
> if (argServer != None):
> print(argServer.getCurrentPeaks())
>
> if I call the macro with no peaks selected I get a popup window telling
> me the fact. This which may not always be the desired effect...
>
> Can I be presumptious enough to suggest that all the ArgumentServer
> functions at least should be 'quiet', i.e. without gui side effects?
One of the primary roles of the Argument Server is to provide an interface
with graphical interaction, so I'm not going to remove the dialogs.
A quiet mode is possible, but I would do it at the object attribute level,
rather than for every function.
For the moment you can always get at the current peaks directly, in the
way that the argument server does, i.e. argServer.parent.currentPeaks
> Obviously you may feel its to late in the day for this as people are
> already using the ArgumnetServer.
I'm not opposed to extensions where the default leaves things the way they
were.
T.
-------------------------------------------------------------------------------
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- -------
-------------------------------------------------------------------------------
|