for loop for each i $txt->insert('end',"Starts ... Process"); **makes a system call to another perl script here $txt->insert('end'," ... Done\n"); $txt->refresh(); <--- this is what I tried $txt->update(); <--- this is what I tried too end for loop