src/eric7/EricWidgets/EricStringListEditWidget.py

branch
eric7
changeset 9534
5ed8445f3b31
parent 9473
3f23dbf37dbe
child 9561
f7bb5739c35a
--- 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.

eric ide

mercurial