jhallman at frb.gov
2006-Dec-06 18:22 UTC
[Rd] tcltk::tk_select.list has bad width (PR#9410)
Full_Name: Jeff Hallman Version: 2.4.0 OS: Linux Submission from: (NULL) (132.200.32.34) 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.
jhallman at frb.gov wrote:> Full_Name: Jeff Hallman > Version: 2.4.0 > OS: Linux > Submission from: (NULL) (132.200.32.34) > > > 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. > >Hmm, maybe, but probably not unconditionally: What if someone puts in an item that is supercalifragilisticexpialidosiously long? You can already scroll sideways using the arrow keys.