in reply to Tk for start/stop of endless loop?

From a design point of view, it is usually not a good idea to mix Tk program with end-less loops. I usually seperate endless processing away into a second script.

So you have:

In case, you think the mixture is not avoidable for whatever reason. Try two thing: