The advice to use "mw->update;" sprinkled everywhere indicates a bad Tk program design. You are blocking the eventloop somewhere, and you can probably write your code differently to avoid the problem. You need to show all your code, or a smaller version that demonstrates the problem.