--- a/eric6/PipInterface/PipFileSelectionDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/PipInterface/PipFileSelectionDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -66,7 +66,8 @@ self.filePicker.setFilters(self.tr("All Files (*)")) self.filePicker.setDefaultDirectory(os.path.expanduser("~")) - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(False) self.userCheckBox.setVisible(install) @@ -81,7 +82,7 @@ @param txt name of the file @type str """ - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( + self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( bool(txt) and os.path.exists(Utilities.toNativeSeparators(txt)) )