Re: [R] tk combobox question

From: Franco Mendolia <franco.mendolia_at_gmx.de>
Date: Thu 10 Aug 2006 - 19:41:50 EST

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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Aug 10 19:46:40 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 10 Aug 2006 - 20:21:41 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.