RefactoringRope/ExtractDialog.py

branch
eric7
changeset 365
f740b50380df
parent 347
b5048b5ff454
child 374
958f34e97952
--- a/RefactoringRope/ExtractDialog.py	Wed May 26 17:53:08 2021 +0200
+++ b/RefactoringRope/ExtractDialog.py	Wed May 26 19:07:42 2021 +0200
@@ -7,8 +7,8 @@
 Module implementing the Extract 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_ExtractDialog import Ui_ExtractDialog
 from .RefactoringDialogBase import RefactoringDialogBase
@@ -48,10 +48,11 @@
         self.__endOffset = endOffset
         self.__extractionType = extractionType
         
-        self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
+        self.__okButton = self.buttonBox.button(
+            QDialogButtonBox.StandardButton.Ok)
         self.__okButton.setEnabled(False)
         self.__previewButton = self.buttonBox.addButton(
-            self.tr("Preview"), QDialogButtonBox.ActionRole)
+            self.tr("Preview"), QDialogButtonBox.ButtonRole.ActionRole)
         self.__previewButton.setDefault(True)
         self.__previewButton.setEnabled(False)
         

eric ide

mercurial