I develop a program linking C++ and Tcl/Tk and i have a problem with a Tk command. My problem is to stop the execution of one program by clicking on a tk_button. I run the program (in C++) by clicking in a button "Run". While the program is running, i can't use the mouse for clicking any where else. Then,i can't stop the execution. I have created a button "CancelExecution" but i couldn't use it . I try to use "Tk_CreateEventHandler", but i don't understand how it works. ( Tk_CreateEventHandler (Tk_Window,unsigned long mask,Tk_EventProc, ClientData)) Maybe there is orthers solutions? Best regards Thanks