[R] Odd tcl/tk listbox problem

From: Mark Coletti <mcoletti_at_gmail.com>
Date: Fri, 09 May 2008 20:55:41 -0400


I get strange behavior when a GUI has more than one list box. Variable selection between the two boxes appears to be mutually exclusive!

So, for the contrived example below:

library(tcltk)
>
> root = tktoplevel()
>
> foo = c("foo","bar", "baz", "quux")
>
> foo.list <- tclVar()
>
> tclObj(foo.list) <- foo
>
> foo.lb <- tklistbox(root, height = 5, listvariable = foo.list)
>
>
> tkpack(foo.lb)
>
>
> bar = c("one","two", "three", "four")
>
> bar.list <- tclVar()
>
> tclObj(bar.list) <- bar
>
> bar.lb <- tklistbox(root, listvariable = bar.list)
>
> tkpack(bar.lb)
>
>

I cannot select items in both list boxes at the same time. Selecting items in one unselects all the items of the other.

Am I doing something wrong, or is this a bug? If the former, what did I screw up?

Cheers,

Mark

-- 
I'm taking reality in small doses to build immunity.

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org 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 Sat 10 May 2008 - 00:58:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 10 May 2008 - 02:30:38 GMT.

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

list of date sections of archive