listbox get
Gives the item at FIRST, or the items from FIRST to LAST.
PATHNAME get FIRST ?LAST?
Description
With one index, gives the text of that item, or an empty string when the index has no item. With two indices, gives a list of the items from FIRST to LAST, both included.
Returns
The text of one item, or a list of items.
Examples
% listbox .ge
> .ge insert end red green blue
> .ge get 1
green
% listbox .ge2
> .ge2 insert end red green blue
> .ge2 get 0 end
red green blue
Errors
% listbox .ge3; .ge3 get
wrong # args: should be ".ge3 get firstIndex ?lastIndex?"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1