Home ⌂Doc Index ◂Up ▴

eric6.E5Gui.E5ListSelectionDialog

Module implementing a dialog to select from a list of strings.

Global Attributes

None

Classes

E5ListSelectionDialog Class implementing a dialog to select from a list of strings.

Functions

None


E5ListSelectionDialog

Class implementing a dialog to select from a list of strings.

Derived from

QDialog, Ui_E5ListSelectionDialog

Class Attributes

None

Class Methods

None

Methods

E5ListSelectionDialog Constructor
getSelection Public method to retrieve the selected items.
on_selectionList_itemChanged Private slot handling a change of an item.
on_selectionList_itemSelectionChanged Private slot handling a change of the selection.

Static Methods

None

E5ListSelectionDialog (Constructor)

E5ListSelectionDialog(entries, selectionMode=QAbstractItemView.ExtendedSelection, title="", message="", checkBoxSelection=False, 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
checkBoxSelection (bool)
flag indicating to select items via their checkbox
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_itemChanged

on_selectionList_itemChanged(itm)

Private slot handling a change of an item.

itm (QListWidgetItem)
reference to the changed item

E5ListSelectionDialog.on_selectionList_itemSelectionChanged

on_selectionList_itemSelectionChanged()

Private slot handling a change of the selection.

Up



Home ⌂Doc Index ◂Up ▴