diff -r b0d14cba79b1 -r 552a790fd9bc src/eric7/EricWidgets/EricPathPickerDialog.py --- 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: