Node:Passing Control to Tk, Next:Housekeeping, Previous:Servicing Tk Events, Up:The Tcl/Tk Prolog Library
There is a predicate for passing control completely over to Tk,
the tk_main_loop/0
command. This passes control to Tk until all
windows in all the Tcl/Tk interpreters in the Prolog have have been
destroyed:
tk_main_loop