diff -r 27f636beebad -r 2c730d5fd177 eric6/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py --- a/eric6/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -46,7 +46,8 @@ self.ignoreDirPicker.setMode(E5PathPickerModes.DirectoryMode) self.ignoreDirPicker.setDefaultDirectory(project.getProjectPath()) - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(False) for language in sorted( DocumentationTools.supportedExtensionsDictForApis.keys()): self.languagesList.addItem(language) @@ -82,7 +83,7 @@ # convert Python to the more specific Python3 language = "Python3" items = self.languagesList.findItems( - language, Qt.MatchFlags(Qt.MatchExactly)) + language, Qt.MatchFlags(Qt.MatchFlag.MatchExactly)) items and items[0].setSelected(True) def __initializeDefaults(self): @@ -215,7 +216,8 @@ @param filename name of the file (string) """ - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(filename != "") + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(filename != "") @pyqtSlot(str) def on_ignoreDirPicker_pathSelected(self, path):