--- a/src/eric7/EricWidgets/EricErrorMessageFilterDialog.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/EricWidgets/EricErrorMessageFilterDialog.py Wed Jul 13 14:55:47 2022 +0200 @@ -16,10 +16,11 @@ """ Class implementing a dialog to manage the list of messages to be ignored. """ + def __init__(self, messageFilters, parent=None): """ Constructor - + @param messageFilters list of message filters to be edited @type list of str @param parent reference to the parent widget @@ -27,20 +28,22 @@ """ super().__init__(parent) self.setupUi(self) - + self.filtersEditWidget.setList(messageFilters) - self.filtersEditWidget.setListWhatsThis(self.tr( - "<b>Error Message Filters</b>" - "<p>This list shows the configured message filters used to" - " suppress error messages from within Qt.</p>" - "<p>A default list of message filters is added to this" - " user list.</p>" - )) - + self.filtersEditWidget.setListWhatsThis( + self.tr( + "<b>Error Message Filters</b>" + "<p>This list shows the configured message filters used to" + " suppress error messages from within Qt.</p>" + "<p>A default list of message filters is added to this" + " user list.</p>" + ) + ) + def getFilters(self): """ Public method to get the list of message filters. - + @return error message filters (list of strings) """ return self.filtersEditWidget.getList()