Re: [R] How to use the options "usecommand" and "command" of tktable?

2015-12-18 Thread Cleber Borges
# only a update the R code (with strange behavior) library( tcltk ); tclRequire( "Tktable" ) top <- tktoplevel() tcl('variable', 'myarray') tcl('array', 'unset', 'myarray') x <- 0 tabCmd <- function() { x <<- x + 1 return( as.tclObj( paste(x) ) ) } tab <- tkwidget( top, 'table', rows=2,

[R] How to use the options "usecommand" and "command" of tktable?

2015-12-17 Thread Cleber N.Borges
How to capture the output from the "command" option of tktable and how to send input to it? As far as I understand, the most appropriate way to use the tktable is through the flag usecommand and command. It fires the string information and cell coordinates and wait for a new string to set a