diff -r 547319e56c60 -r 666c2b81cbb7 eric7/PipInterface/PipFileSelectionDialog.py --- a/eric7/PipInterface/PipFileSelectionDialog.py Wed May 19 18:16:45 2021 +0200 +++ b/eric7/PipInterface/PipFileSelectionDialog.py Wed May 19 19:53:36 2021 +0200 @@ -42,7 +42,7 @@ if mode == "requirements": self.fileLabel.setText(self.tr("Enter requirements file:")) - self.filePicker.setMode(E5PathPickerModes.OpenFileMode) + self.filePicker.setMode(E5PathPickerModes.OPEN_FILE_MODE) self.filePicker.setToolTip(self.tr( "Press to select the requirements file through a file" " selection dialog.")) @@ -50,7 +50,7 @@ self.tr("Text Files (*.txt);;All Files (*)")) elif mode == "package": self.fileLabel.setText(self.tr("Enter package file:")) - self.filePicker.setMode(E5PathPickerModes.OpenFileMode) + self.filePicker.setMode(E5PathPickerModes.OPEN_FILE_MODE) self.filePicker.setToolTip(self.tr( "Press to select the package file through a file" " selection dialog.")) @@ -60,7 +60,7 @@ "All Files (*)")) else: self.fileLabel.setText(self.tr("Enter file name:")) - self.filePicker.setMode(E5PathPickerModes.OpenFileMode) + self.filePicker.setMode(E5PathPickerModes.OPEN_FILE_MODE) self.filePicker.setToolTip(self.tr( "Press to select a file through a file selection dialog.")) self.filePicker.setFilters(self.tr("All Files (*)"))