Tk.jl API

Tk._tcl_doMethod
_tcl_do(f) -> result

Execute f() on the Tcl thread. If the caller is already on the timer task (or during init() before the timer starts), f is called directly. Otherwise, f is queued for the timer callback and the caller blocks until the result is available.

source