Subject: Re: [nmr_sparky] 'zf' in python script
From: Tom Goddard
Date: Nov 7 8:59 AM

Previous: 536

Hi Krzysztof,

How about using python code

session.command_characters(zf)

You could do that after opening each spectrum. There unfortunately is
not a simple way to select one of the spectrum view windows for zf to
act on. The Sparky Python interface is pretty limited. But I think it
could be done by getting the python View object and using its Tk frame
with the Python / Tkinter focus() command to give that view window the
focus.

The Python interface to Sparky is described in the README file in the
sparky/python directory.

Tom



krzysztof.kazimierczuk wrote:

Hello all,

I would like to write a Python script, that will open multiple 2D
spectra, set contour level and zoom them out, so that each spectrum
will fill the window (exactly like in the case of zf command). I
dont know how to realize last point. Could You help me, please?

Best Regards,
Krzysztof

__._