Re: [R] locator() via tcltk

2005-06-06 Thread Prof Brian Ripley
On Sun, 5 Jun 2005, Sebastian Luque wrote: Dear List members, Thank you so much for your insights. On Sat, 4 Jun 2005 09:39:33 +0100 (BST), Prof Brian Ripley [EMAIL PROTECTED] wrote: [...] I think it is more likely you want to wait for the Tk interaction and then return the results, that

Re: [R] locator() via tcltk

2005-06-05 Thread Sebastian Luque
Dear List members, Thank you so much for your insights. On Sat, 4 Jun 2005 09:39:33 +0100 (BST), Prof Brian Ripley [EMAIL PROTECTED] wrote: [...] I think it is more likely you want to wait for the Tk interaction and then return the results, that is use a `modal' widget. If so, take a look

Re: [R] locator() via tcltk

2005-06-04 Thread Prof Brian Ripley
You have two asynchronous processes here: your R function will return, leaving a Tk widget up. Duncan Murdoch's solution is to give you a function that will retrieve at some future stage the result of the last press (if any) of Get coordinates button. Is that what you want? I think it is

Re: [R] locator() via tcltk

2005-06-04 Thread Jean . Coursol
To illustrate (?) Professor Ripley comments, I send you an example (stolen in various places...). Note the tkwm.resizable(tt, 0, 0) directive that prevents the window rescaling (if not,the coordinates will not be correct). # # Getting the mouse coords with TclTk # # Two possibilities: tkrplot

[R] locator() via tcltk

2005-06-03 Thread Sebastian Luque
Hello, I'm trying to write a function using tcltk to interactively modify a plot and gather locator() data. I've read Peter's articles in Rnews, the help pages in tcltk, http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/, plus a post in R-help sometime ago, but haven't found a solution. The

Re: [R] locator() via tcltk

2005-06-03 Thread Duncan Murdoch
Sebastian Luque wrote: Hello, I'm trying to write a function using tcltk to interactively modify a plot and gather locator() data. I've read Peter's articles in Rnews, the help pages in tcltk, http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/, plus a post in R-help sometime ago, but haven't