How to create a simple listbox? Parameter selectmode specifies the selection mode.Here are the possible values:
|
![]() |
Listbox.insert
to insert a list of
elements into a Listbox
widget.index
specifies at which position the insertion will
start:
`Num n | Position in the list: an integer. | |
`End | End of list | |
`Active | Position of active element | |
`Anchor | ||
`Atxy of (x,y) | Index corresponding to the position (x,y) in pixels |
How to select an item in a listbox?
Method Listbox.curselection the list of selected elements,and an empty list if no element is currently selected. Method Listbox.get the element whose index is given as a parameter(with type `Num of int). |
![]() |
After selecting a composer and clicking on "Show selected composer": |
![]() |
Francois dot Thomasset at inria dot fr