eric6/Project/TranslationPropertiesDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
--- 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)

eric ide

mercurial