[R] gWidgetstcltk gtext problem

mrzung mrzung46 at gmail.com
Sun Apr 1 08:27:02 CEST 2012


hi, what I want to do is put a function result(output) into gtext area.
short example is following,

require("gWidgetstcltk")
options(guiToolkit = "tcltk")

win<-gwindow()
input<-gedit("",con=win)
run<-gbutton("run",con=win,handler=function(h,...){
y<<-as.numeric(svalue(input))+1
})
outarea<-gtext("",con=win)


in this case, I want to put "y" value into "outarea" whenever click the
"run" button.
specifically, I want to solve this problem by gWidgetstcltk.

Thanks

--
View this message in context: http://r.789695.n4.nabble.com/gWidgetstcltk-gtext-problem-tp4522879p4522879.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list