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(+ListOrBitMask)The ListOrBitMask list can contain the following atoms:
tk_dont_waittk_x_eventstk_window_eventstk_file_eventstk_timer_eventstk_idle_eventsTk_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(+TclInterpreter, -Event)tk_next_event(+ListOrBitMask, +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)