in reply to Re: Interrupting a loop
in thread Interrupting a loop

If there's a lot of data processing, it might also make sense to put it into it's own process (or thread) altogether and control it from the GUI with some kind if interprocess messaging.