[R] create buttons dynamically
Francisco do Nascimento Junior
fnj at cin.ufpe.br
Sun Feb 16 03:24:02 CET 2003
Hi,is it right?
for (i in 1:length(imagens)) {
buts[i] <- tkbutton(tt,
text=paste("Figure",i),command=function()show(i))
chk.g[i] <- tkcheckbutton(tt,text="Grafics",
variable=grafs[i],command=function()(values[i] <- calcule(i) ))
chk.f[i] <- tkcheckbutton(tt,text="Fotográfica",
variable=fotos[i],command=function()(values[i] <- calcule(i)))
tkgrid(chk.g[i],chk.f[i],buts[i])
}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Francisco Júnior,
Computer Science - UFPE-Brazil
"One life has more value that the
world whole"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
More information about the R-help
mailing list