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
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
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
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
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
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