Displaying 1 result from an estimated 1 matches for "fruitlist".
Did you mean:
fruit_list
2007 Jan 01
0
autofill for a tkentry field
...found a solution on the
tcl wiki pages, but I don't quite know how to translate it in R... Here is
the tcl code: http://wiki.tcl.tk/13267
And here is my code that does not work.
autofill <- function(){
cat("I was here!")
entry <- tclvalue(f1)
ind <- grep(entry, fruitList)
if (length(ind)>0){f1 <- tclVar(fruitList[ind[1]])}
}
fruitList <<- c("Apple", "Banana", "Peach", "Pear", "Plum", "Mango")
tkdestroy(tt)
tt <- tktoplevel()
pw <- tkframe(tt)
ppw <- tk2labelframe(pw...