historycombobox module contains the HistoryComboBox widget
HistoryComboBoxwidget emulates the QLineEdit
returnPressedsignal for when the
Returnkeys are pressed, and saves anything that is typed into the edit box into its list.
Override the inherited focusOutEvent to save the current text to the dropdown list.
Parameters: event – The focus event
Get all the items from the history
Returns: A list of strings
Override the inherited keyPressEvent method to emit the
returnPressedsignal and to save the current text to the dropdown list.
Parameters: event – The keyboard event