Re: [R] tcltk table "validateCommand"

2016-11-17 Thread Dalthorp, Daniel
Yes, Peter's suggestion worked just right. Here's an example that prints out the proposed cell content and will not allow 'w' or '\n' to be entered into the table: require(tcltk2) tt<-tktoplevel(); tfr<-tkframe(tt); tkgrid(tfr) tableData<-tclArray() valChar<-function(S){ print(S);

Re: [R] tcltk table "validateCommand"

2016-11-17 Thread Cleber N.Borges via R-help
Hi Dan Were you able to find a way to access the % S values ?? Do you have any examples of how this works? Thank you for your attention. Cleber Em 25/01/2016 08:21, peter dalgaard escreveu: > It's been so long that I have forgotten how to get the package with the table > widget installed on

Re: [R] tcltk table "validateCommand"

2016-01-25 Thread peter dalgaard
It's been so long that I have forgotten how to get the package with the table widget installed on OSX, so I cannot check things for you. However, the canonical way to handle %S type arguments is to pass them as formal arguments to the callback, e.g. > .Tcl.callback(function(x,y)x+y) [1]

[R] tcltk table "validateCommand"

2016-01-22 Thread Dalthorp, Daniel
I'd like to allow users to edit data in tcltk tables and to use vcmd to validate data entry, e.g., not allowing non-numbers to be entered in numeric cells and not allowing '\n' to be entered in text cells. The problem is that I can't figure out how to "see" their data entry before it is entered,