I am converting a command line program that had lots of user feedback as it ran. In order to get that output to show immediately I used $stdout.flush sprinkled numerously throughout the program. I am now putting a GUI interface on the program and redirecting the output to a TkText object by overriding the print and puts methods and using them to insert the text into the TkText widget. This works fine, but I now have the original problem of the text not appearing until all the processing is finished. Is there a way to flush a TkText object so the text appears immediately?