diff -r 27f636beebad -r 2c730d5fd177 eric6/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py --- a/eric6/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -34,7 +34,8 @@ super(DotDesktopWizardDialog, self).__init__(parent) self.setupUi(self) - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(False) self.__mainCategories = [ 'AudioVideo', 'Audio', 'Video', 'Development', 'Education', @@ -215,7 +216,8 @@ enable = bool(self.nameEdit.text()) and bool(self.typeEdit.text()) if bool(self.onlyShowEdit.text()) and bool(self.notShowEdit.text()): enable = False - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(enable) @pyqtSlot(int) def on_typeComboBox_currentIndexChanged(self, index): @@ -268,7 +270,7 @@ self.categoriesEdit.text(), ";", subEntries=self.__subCategories, allowMultiMain=False) - if dlg.exec() == QDialog.Accepted: + if dlg.exec() == QDialog.DialogCode.Accepted: categories = dlg.getData(";", True) self.categoriesEdit.setText(categories) @@ -298,7 +300,7 @@ dlg = DotDesktopListSelectionDialog( self.__showinEnvironments, self.onlyShowEdit.text(), ";") - if dlg.exec() == QDialog.Accepted: + if dlg.exec() == QDialog.DialogCode.Accepted: environments = dlg.getData(";", True) self.onlyShowEdit.setText(environments) @@ -328,7 +330,7 @@ dlg = DotDesktopListSelectionDialog( self.__showinEnvironments, self.notShowEdit.text(), ";") - if dlg.exec() == QDialog.Accepted: + if dlg.exec() == QDialog.DialogCode.Accepted: environments = dlg.getData(";", True) self.notShowEdit.setText(environments)