--- a/eric6/Project/TranslationPropertiesDialog.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Project/TranslationPropertiesDialog.py Tue Mar 02 17:17:09 2021 +0100 @@ -71,7 +71,8 @@ """ Public method to initialize the dialogs data. """ - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setEnabled(False) self.transPatternPicker.setText( self.project.pdata["TRANSLATIONPATTERN"]) self.transBinPathPicker.setText( @@ -98,7 +99,7 @@ @param txt text of the transPatternPicker line edit (string) """ - self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( + self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( "%language%" in txt) @pyqtSlot(str)