[R] tk combobox question
Franco Mendolia
franco.mendolia at gmx.de
Thu Aug 10 11:41:50 CEST 2006
Datum: 09.08.2006 23:19
> I think you want something like this:
>
> require(tcltk) || stop("Package tcltk is not available.")
> version.BWidget <- tclvalue(tclRequire("BWidget"))
>
> modify_command <- function() {
> print("Hey, I'm modified...")
> }
>
> tt <- tktoplevel()
>
> values = c("foo", "bar", "jeebee")
> combo <- tkwidget(tt, "ComboBox", "-modifycmd",
> modify_command, values=values)
> tkgrid(combo)
That is exactly what I was looking for! Thanks
More information about the R-help
mailing list