eric6.E5Gui.E5ListSelectionDialog
Module implementing a dialog to select from a list of strings.
Global Attributes
Classes
Functions
E5ListSelectionDialog
Class implementing a dialog to select from a list of strings.
Derived from
QDialog, Ui_E5ListSelectionDialog
Class Attributes
Class Methods
Methods
Static Methods
E5ListSelectionDialog (Constructor)
E5ListSelectionDialog(entries, selectionMode=QAbstractItemView.ExtendedSelection, title="", message="", parent=None)
Constructor
- entries (list of str)
-
list of entries to select from
- selectionMode (QAbstractItemView.SelectionMode)
-
selection mode for the list
- title (str)
-
tirle of the dialog
- message (str)
-
message to be show in the dialog
- parent (QWidget)
-
reference to the parent widget
E5ListSelectionDialog.getSelection
getSelection()
Public method to retrieve the selected items.
- Returns:
-
selected entries
- Return Type:
-
list of str
E5ListSelectionDialog.on_selectionList_itemSelectionChanged
on_selectionList_itemSelectionChanged()
Private slot handling a change of the selection.