Advanced Search
Mail us
Home    Manuel    Links    Faq    Submit a tcl/tk Reference    Contact Us

    Some examples tcl/tk codes     Man of Bwidget     Man of blt     mkwidget screenshots     TkOgl     Video Demo real.

  How can I avoid fractional white space at the end of a resizable listbox?
 Use `-setgrid 1` when you create the `listbox`.  Note that only one
widget can properly have setgrid set per toplevel.  See the `options`
man page for more information.  It works like so:

listbox .l -setgrid 1 -yscrollcommand [list .s set]
scrollbar .s -command [list .l yview]
pack .s -side right -fill y
pack .l -side top -fill both -expand 1
.l insert end one two three four five six seven eight nine ten LAST

*Note:* You may have only one widget per toplevel use `-setgrid`.