I am trying to get text from a C program to display in the Tcl GUI. If I set a trace on a variable to print it, it works whenever the variable is changed in the GUI. However, if I change it with Tcl_SetVar from the C code, it does not get printed. What gives?
Calling a Tcl proc from C seems like a simple task, but I haven't found the trick that makes this work. Using Tcl_Eval seems logical but it hasn't worked for me. In fact, doing ret = Tcl_Eval(interp,"puts [info commands p*]"); from C confirms that it does not see the proc named...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.