next up previous contents
Next: Menu Up: Tk options Previous: Line

ListBox

tex2html_wrap1073


Name Tk Element
frame configures the frame around the whole element
packFrame packing of frame
label configures the title
packLabel packing of label
listboxFrame configures the frame around the listbox and the scrollbar
packListboxFrame packing of listboxFrame
listbox configures the listbox *
scrollbar configures the scrollbar
packListbox pack text
packScrollbar pack scrollbar

Special Tk option

-selectmode
This Tk option set the select mode of the listbox, posible values are:
single
Only one element may be selected at a time, and it is not possible to drag the mouse
browse
Only one element may be selected at a time, and it is possible to drag the mouse, which select the next element.
multiple
Any number of elements may be selected, including discontiguous ranges.Clicking button 1 on an element toggles its selection state without affecting any other elements.
extended
Any number of elements may be selected, including discontiguous ranges. Pressing button 1 on an element selects it, deselects everything else.


next up previous contents
Next: Menu Up: Tk options Previous: Line

Jesper Kjær Pedersen <blackie@imada.ou.dk>
Wed Oct 2 13:29:53 MET DST 1996