in reply to Tk buttons: Run/Cancel
You can look at Tk::ExecuteCommand for ideas on handling long-running processes.
converter