8.13.9 Selection class: A dialog for selecting one or more items from a list.

The Selection class has this constructor:

class Selection( slist=[],title='Selection Dialog',mode=None,sort=False,selected=[])
Create the SelectionList dialog.

selected is a list of items that are initially selected.

Selection objects have the following methods:

setSelected( selected)
Mark the specified items as selected.

getResult( )
Return the list of selected values.

If the user cancels the selection operation, the return value is None. Else, the result is always a list, possibly empty or with a single value.