[R] setvalue of a combobox

Andreas Posch andreas.posch at boku.ac.at
Tue Jun 17 10:52:02 CEST 2008


if I wanted to set the value of a combobox 

tt <- tktoplevel()
box <- tkwidget(tt,"ComboBox",values=c(1,2,3))
tkgrid(box)
tcl(box,"setvalue","first")

does anybody know how I would access an index other than the first? as second, and numbers do not work..

thanks in advance

Andreas Posch



More information about the R-help mailing list