tclkit console mode


I created an application using tclkit (with gui) to use in a pre-build
process of my compiler.
The problem is that when the starkit starts, its process returns
immediately. I want that the starkit process will not return untill I
close its gui.
How can I do that?

Thank you very much