def do_something(): print "starting" root.config(cursor="watch") root.update() time.sleep(5) root.config(cursor="") print "done"