[R] Tcl Tk table

James Wettenhall wettenhall at wehi.edu.au
Tue Apr 27 04:27:57 CEST 2004


Maybe time to change the subject line? ;-)

> Notice that tclVar objects are like pointers: They represent the
> variable rather than its content. I.e. tclvalue on the R side
> corresponds to a "$" on the Tcl side:

OK, that does make sense now that I think about it.  When using 
the message= argument of a message box, you want the VALUE of a 
text variable, ($ in Tcl or tclvalue in R-Tcl/Tk), but when you 
want to use the textvariable= argument of an entry box, then you 
need to pass the variable by reference (or a pointer to it), so 
you don't use tclvalue(), you just use the variable name.  So we 
should never try to get rid of tclvalue() but .Tk.ID() is indeed 
unnecessary.

OK, so forget my analogy between tclvalue() and .Tk.ID()  ;-)

Happy Tcling,
James




More information about the R-help mailing list