diff -r e017c0df9ef1 -r 5ed8445f3b31 src/eric7/EricWidgets/EricStringListEditWidget.py --- a/src/eric7/EricWidgets/EricStringListEditWidget.py Fri Nov 25 11:51:51 2022 +0100 +++ b/src/eric7/EricWidgets/EricStringListEditWidget.py Fri Nov 25 14:15:48 2022 +0100 @@ -68,6 +68,24 @@ """ return self.__model.stringList()[:] + def count(self): + """ + Public method to get the number of entries of the list. + + @return number of list entries + @rtype int + """ + return self.__model.rowCount() + + def isListEmpty(self): + """ + Public method to check, if the list is empty. + + @return flag indicating an empty list + @rtype bool + """ + return self.__model.rowCount() == 0 + def setListWhatsThis(self, txt): """ Public method to set a what's that help text for the string list.