Re: [Rd] tcltk::tk_select.list has bad width (PR#9410)

From: Jeffrey J. Hallman <>
Date: Wed 06 Dec 2006 - 20:15:14 GMT

Peter Dalgaard <> wrote:

  pd> wrote:
>> The window put up by tcltk::tk_select.list appears to be of fixed width (20
>> chars), and is not wide enough to accomodate strings longer than 20 characters
>> long. This can be easily fixed by setting the option "width = 0" in the calls
>> to tklistbox(). Width = 0 tells tk to make the listbox just wide enough to
>> accomodate the items contained in the list.

  pd> Hmm, maybe, but probably not unconditionally: What if someone puts in an item   pd> that is supercalifragilisticexpialidosiously long?

The listbox comes up as wide as my screen, but no wider. Seems like acceptable behavior to me.

  pd> You can already scroll sideways using the arrow keys.

Yes, but the width of 20 is still a pain. I grew annoyed enough to track this down and fix it when I had a help document for 'lag()' in my local package as well as the one in the 'stats' package. When I entered


at the R prompt, I'd get a menu offering me a choice of which document to show, but the strings identifying the choices were so truncated that it was difficult to know which one was which. 20 characters is just too few.

Do you not agree that sending "width = 0" and letting Tk handle it automagically is better than what's in there now?

Jeff mailing list Received on Thu Dec 07 19:31:20 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 07 Dec 2006 - 09:30:55 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.