Tcl Tk
Advanced Search
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.
The source of theses pages is the excellent
Tcl/Tk Quick Reference Guide
.
I apologize , because there're some tex commands in the text,
if you see some error please send me an email
Listbox Widget Commands
listbox
activate
index
Sets the active element to
index
.
listbox
bbox
index
Returns a list {
x y width height
} bounding element at
index
.
listbox
curselection
Returns list of indices of all elements currently selected.
listbox
delete
index1
[
index2
] Delete range of elements from
index1
to
index2
(defaults to
index1
).
listbox
get
index1
[
index2
] Return as a list contents of elements from
index1
to
index2
.
listbox
index
index
Returns position
index
in
number
notation.
listbox
insert
index
[
element
...] Insert specified elements just before element at
index
.
listbox
nearest
y
Return index of element nearest to
y
-coordinate.
listbox
scan
args
See Widget Scroll Commands above.
listbox
selection anchor
index
Set the selection anchor to element at
index
.
listbox
selection clear
first
[
last
] Deselect elements between
first
and
last
inclusive.
listbox
selection includes
index
Returns 1 if element at
index
is selected, 0 otherwise.
listbox
selection set
first
[
last
] Add all elements between
first
and
last
inclusive to selection.
listbox
see
index
Adjust the view in window so element at
index
is completely visible.
listbox
size
Returns number of elements in listbox.
listbox
xview|yview
args
See Widget Scroll Commands above.
The source of theses pages is the excellent
Tcl/Tk Quick Reference Guide
.