diff -r 27f636beebad -r 2c730d5fd177 eric6/E5Gui/E5PathPickerDialog.py --- a/eric6/E5Gui/E5PathPickerDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/E5Gui/E5PathPickerDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -35,7 +35,8 @@ self.__pathPicker = E5PathPicker(self) self.__buttonBox = QDialogButtonBox( - QDialogButtonBox.Cancel | QDialogButtonBox.Ok, self) + QDialogButtonBox.StandardButton.Cancel | + QDialogButtonBox.StandardButton.Ok, self) self.__layout.addWidget(self.__label) self.__layout.addWidget(self.__pathPicker) @@ -150,7 +151,7 @@ dlg.setPickerFilters(";;".join(filters)) # step 2: show the dialog and get the result - if dlg.exec() == QDialog.Accepted: + if dlg.exec() == QDialog.DialogCode.Accepted: ok = True path = dlg.getPath().strip() else: