eric7/EricWidgets/EricPathPicker.py

branch
eric7
changeset 9024
640778fcd474
parent 8881
54e42bc2437a
child 9152
8a68afaf1ba2
--- a/eric7/EricWidgets/EricPathPicker.py	Wed Apr 13 15:13:59 2022 +0200
+++ b/eric7/EricWidgets/EricPathPicker.py	Wed Apr 13 18:16:23 2022 +0200
@@ -684,6 +684,15 @@
         """
         self._editor.setCurrentIndex(index)
     
+    def setCurrentText(self, text):
+        """
+        Public slot to set the current text.
+        
+        @param text text of the item to set current
+        @type str
+        """
+        self._editor.setCurrentText(text)
+    
     def setInsertPolicy(self, policy):
         """
         Public method to set the insertion policy of the combo box.

eric ide

mercurial