Re: [R] tcltk window freezes when using locator( )

2011-11-06 Thread Francois Rousseu
n,text="test",command=ff) tkpack(button) Francois Rousseu > From: francoisrous...@hotmail.com > To: r-help@r-project.org > Date: Sun, 6 Nov 2011 21:55:58 -0500 > Subject: [R] tcltk window freezes when using locator( ) > > > Hello useRs > > Using the foll

[R] tcltk window freezes when using locator( )

2011-11-06 Thread Francois Rousseu
Hello useRs Using the following code: library(tcltk) win<-tktoplevel() ff<-function(){ plot(1:10,1:10) pol<-locator(1) print(pol) } button<-tkbutton(win,text="test",command=ff) tkpack(button) makes the win panel stop responding when the plot is closed befo