in reply to Tk::Canvas->createLine max?

I couldn't get your script to work. The window would come up, but when I clicked on a button, it stuck. This reminds me a little of a demo called plop.ppl. It gives a good example of how to do minimum and maximum.