--- a/eric6/Project/IdlCompilerDefineNameDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Project/IdlCompilerDefineNameDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -45,7 +45,7 @@ """ Private slot to update the enable state of the OK button. """ - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( + self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( bool(self.nameEdit.text())) @pyqtSlot(str)