Re: A couple questions regarding listbox.

From: Erick Gallesio <>
Date: Fri, 03 Feb 1995 15:33:39 +0000

> I am looking for help regarding selection and listboxes. Is it possible
> to determine the indices of all selected items in a listbox? Also,
> can I restrict the listbox so that it only allows one item to be selected
> at a time?

To obtain the list of selected item, just use the 'curselection option

                (.list 'cursel)

or if you use STklos
                (current-selection l)

To select one item at a time, use tk-listbox-single-select function.

                -- Erick
Received on Fri Feb 03 1995 - 15:33:40 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST