RefactoringRope/ConfirmationDialog.py

branch
eric7
changeset 365
f740b50380df
parent 347
b5048b5ff454
child 374
958f34e97952
diff -r a92b3272f4c1 -r f740b50380df RefactoringRope/ConfirmationDialog.py
--- a/RefactoringRope/ConfirmationDialog.py	Wed May 26 17:53:08 2021 +0200
+++ b/RefactoringRope/ConfirmationDialog.py	Wed May 26 19:07:42 2021 +0200
@@ -7,8 +7,8 @@
 Module implementing the Confirmation dialog.
 """
 
-from PyQt5.QtCore import pyqtSlot
-from PyQt5.QtWidgets import QDialogButtonBox, QAbstractButton
+from PyQt6.QtCore import pyqtSlot
+from PyQt6.QtWidgets import QDialogButtonBox, QAbstractButton
 
 from .Ui_ConfirmationDialog import Ui_ConfirmationDialog
 from .RefactoringDialogBase import RefactoringDialogBase
@@ -43,9 +43,10 @@
         
         self._changeGroupName = changeGroupName
         
-        self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
+        self.__okButton = self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok)
         self.__previewButton = self.buttonBox.addButton(
-            self.tr("Preview"), QDialogButtonBox.ActionRole)
+            self.tr("Preview"), QDialogButtonBox.ButtonRole.ActionRole)
         self.__previewButton.setDefault(True)
         
         self.__method = method

eric ide

mercurial