And that's everything there is to know about the
ET()
function and its siblings.
In case you missed something amid all the details, here's a
10-second review of the essential facts:
ET()
executes Tcl/Tk code and returns a
success/failure code.
ET_STR()
, ET_INT()
and ET_DBL()
do the same, but return a string, and integer or a double which
was the result of the last Tcl/Tk command executed.
ET_STR()
is ephemeral.
%s(...)
, %d(...)
and
%f(...)
insert string, integer and double C expressions
into the argument of ET()
and its siblings.
%q(...)
works like %s(...)
but adds backslashes before characters that are special to Tcl/Tk.
ET_INCLUDE()
, that allows you incorporate whole
files full of Tcl/Tk into your application.