src/eric7/EricWidgets/EricPathPickerDialog.py

branch
server
changeset 10630
552a790fd9bc
parent 10439
21c28b0f9e41
child 11035
e1e1d6e317c7
--- a/src/eric7/EricWidgets/EricPathPickerDialog.py	Tue Feb 27 15:05:53 2024 +0100
+++ b/src/eric7/EricWidgets/EricPathPickerDialog.py	Fri Mar 08 15:30:23 2024 +0100
@@ -78,6 +78,15 @@
         """
         self.__pathPicker.setMode(mode)
 
+    def setPickerRemote(self, remote):
+        """
+        Public method to set the remote mode of the path picker.
+
+        @param remote flag indicating the remote mode
+        @type bool
+        """
+        self.__pathPicker.setRemote(remote)
+
     def setPickerFilters(self, filters):
         """
         Public method to set the filters of the path picker.
@@ -134,6 +143,7 @@
     strPath=None,
     defaultDirectory=None,
     filters=None,
+    remote=False,
 ):
     """
     Function to get a file or directory path from the user.
@@ -153,6 +163,8 @@
     @type str (optional)
     @param filters list of file filters (defaults to None)
     @type list of str (optional)
+    @param remote flag indicating the remote mode (defaults to False)
+    @type bool (optional)
     @return tuple containing the entered path and a flag indicating that the
         user pressed the OK button
     @rtype tuple of (str, bool)
@@ -164,6 +176,7 @@
     if label:
         dlg.setLabelText(label)
     dlg.setPickerMode(mode)
+    dlg.setPickerRemote(remote)
     if strPath:
         dlg.setPickerPath(strPath)
     if defaultDirectory:

eric ide

mercurial