Next: Commands for Tcl Interpreters to Interact with The Prolog System, Previous: Predicates for Prolog to Interact with Tcl Interpreters, Up: Quick Reference
tk_new(+Options, -Interp)Options should be a list of options described following:
top_level_eventsname(+ApplicationName)send command.
display(+Display)tk_do_one_eventtk_do_one_event(+Options)The Options list can contain the following atoms:
tk_dont_waittk_window_eventstk_file_eventstk_timer_eventstk_idle_eventsTcl_DoWhenIdle events
tk_all_eventsCalling tk_do_one_event/0 is equivalent to a call to
tk_do_one_event/1 with all flags set. If the tk_dont_wait
flag is set and there is no event to handle, the call will fail.
tk_next_event(+Options, -Event)tk_next_event(+Options, +TclInterpreter, -Event)tk_do_one_event/[0,1]
except that they processes Tk events until is at least one Prolog event
happens, when they succeed binding Event to the first
term on the Prolog event queue associated with the interpreter
TclInterpreter.
tk_main_looptk_main_window(+TclInterpreter, -TkWindow)tk_destroy_window(+TkWindow)tk_make_window_exist(+TkWindow)tk_num_main_windows(-NumberOfWindows)