8.13.8 ModelessSelection class: A modeless dialog for selecting one or more items from a list.

The ModelessSelection class has this constructor:

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

ModelessSelection objects have the following methods:

setSelected( selected,bool)
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.