Node:Passing control to Tk, Next:, Previous:Servicing Tk Events, Up:The Prolog library



Passing control to Tk

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