in reply to refreshing a GUI

I find your description of the problem a bit vague - I don't really understand what the problem is. Where do you have problems with? Printing out stuff? What are you printing to where? Or do you have problems with changes in the appearance of your GUI?

One should realize the only time the Tk library can update the screen is when control is returned to it. As long as time is spend in "user" code - and that includes the time spend in sleep, Tk cannot update the screen. Perhaps your problem is just a long running sub?

-- Abigail