import bpy
from time import sleep
x = 1
for x in range(10):
... print("Done")
... sleep(1)
If run this script, the blender hangs for a while and restores again with 10 Messages 'Done'
But what I need is it should print the string 'Done' one by one. but it hangs for a while and prints all the 10 strings named Done altogether at once.
Same thing happens with bpy.ops.transform.translate()()

self._timer = wm.event_timer_add(1, context.window)– batFINGER Sep 19 '18 at 14:21