Problem moving items in a canvas

Luis López lopezsolerluis at
Tue Dec 20 21:35:01 UTC 2016


I am an astronomy teacher, and I'm preparing a program to analyze stellar
spectra with my pupils. It's going on well (I think!), but I have a strange
problem that I can't solve by myself.

The principal code is in "espectro-visual.lisp" ("fits.lisp" is a kind of
little 'library' to open fits image files, an astronomical standard; you
can visualize them with programs like "SaoImage DS9"). You run the program
with '(espectro-visual)'. To reproduce the problem I think I'd better guide
you step by step:

1) You click in 'Create profile..." and choose '' (you
can download this file (~1MB) from
2) Then you move over the profile, and -pressing the mouse right-button-
move a dozen or so pixels left or right and release the button: you'll see
a line and a number under the 'barycenter' of the zone (astronomically, you
should choose an spectral line (one of those 'valleys' here and there), but
that doesn't matter now).
3) If you press the mouse left-button over the number created, you can move
it around the canvas (I want to be able to do it, to avoid the 'cluttering'
of labels).

Now, the problem: As soon as I leave the canvas with the mouse, if I
re-enter the canvas I'm no longer able to move the labels again! I can do
it with new labels, but if I leave the canvas the problem applies to them

Thank you very much, and please excuse me if I didn't explain myself very

Luis López
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: espectro-visual.lisp
Type: application/octet-stream
Size: 14063 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fits.lisp
Type: application/octet-stream
Size: 2616 bytes
Desc: not available
URL: <>

More information about the ltk-user mailing list