eric7.EricWidgets.EricComboSelectionDialog
Module implementing a dialog to select one entry from a list of strings.
Global Attributes
Classes
Functions
EricComboSelectionDialog
Class implementing a dialog to select one entry from a list of strings.
Derived from
QDialog, Ui_EricComboSelectionDialog
Class Attributes
Class Methods
Methods
Static Methods
EricComboSelectionDialog (Constructor)
EricComboSelectionDialog(entries, title="", message="", parent=None)
Constructor
- entries (list of str or list of tuples of (str, any))
-
list of entries to select from
- title (str (optional))
-
title of the dialog (defaults to "")
- message (str (optional))
-
message to be show in the dialog (defaults to "")
- parent (QWidget (optional))
-
reference to the parent widget (defaults to None)
EricComboSelectionDialog.getSelection
getSelection()
Public method to retrieve the selected item and its data.
- Return:
-
tuple containing the selected entry and its associated data
- Return Type:
-
tuple of (str, any)
EricComboSelectionDialog.on_selectionComboBox_currentTextChanged
on_selectionComboBox_currentTextChanged(txt)
Private slot to react upon changes of the selected entry.
- txt (str)
-
text of the selected entry