Re: [R] tcltk: click and return table cell index

2016-05-02 Thread Dalthorp, Daniel
-- > John Fox, Professor > McMaster University > Hamilton, Ontario > Canada L8S 4M4 > Web: socserv.mcmaster.ca/jfox > > > > -Original Message- > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of > Dalthorp, > > Daniel > >

Re: [R] tcltk: click and return table cell index

2016-04-30 Thread Fox, John
1:42 PM > To: r-help@R-project.org (r-help@r-project.org) > Subject: [R] tcltk: click and return table cell index > > I'm struggling mightily with what should be a simple task...when a user clicks > on a cell in a tcltk table widget, I need to know which cell was c

[R] tcltk: click and return table cell index

2016-04-29 Thread Dalthorp, Daniel
I'm struggling mightily with what should be a simple task...when a user clicks on a cell in a tcltk table widget, I need to know which cell was clicked. One idea that gives a cryptic error: tkbind(table1, "", function(x, y){ tcl(table1, "index", x, y) } # x, y give pixel coordinates; "index" sh