Subject: show peaks in all spectra with one click
From: nmrworker
Date: Apr 16, 2010

Next: 681


I just got hold of sparky and loved it immediately! While playing with it, I met a situation I think one can probably improve the efficiency dramatically. In the Peak Table window, we can double-left-click or single-middle-click at the left side of a peak in particular spectrum to center the spectrum with that peak. If there are more than one spectrum, one need to click individual peaks to center them in different spectra window. Im wondering whether one can set a different mouse event to center all the peaks in their spectrum, respectively, for example, set single-middle-click or single-right-click for this purpose. I believe people would benefit a lot from this small modification.

I tried to understand the peaktable.py but it is quite complicated for a python newbie. By the way, how exactly I can add my own python script in sparky? Here is what I tried:
1. create a file my.py with following lines
def hello ():
print (hello the world)
2. save this file in /home/Sparky/Python and my SPARKYHOME is /home/Sparky
3. open sparky and python shell, type import my and get error message:
Traceback (most recent call last):
File /usr/local/src/sparky/platforms/linux-2.6.9/sparky-install/python/sparky/pythonshell.py, line 150, in execute_command
File stdin, line 1, in ?
ImportError: No module named my

Thanks in advance