RefactoringRope/InlineDialog.py

branch
eric7
changeset 365
f740b50380df
parent 347
b5048b5ff454
child 374
958f34e97952
diff -r a92b3272f4c1 -r f740b50380df RefactoringRope/InlineDialog.py
--- a/RefactoringRope/InlineDialog.py	Wed May 26 17:53:08 2021 +0200
+++ b/RefactoringRope/InlineDialog.py	Wed May 26 19:07:42 2021 +0200
@@ -7,8 +7,8 @@
 Module implementing the Inline 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_InlineDialog import Ui_InlineDialog
 from .RefactoringDialogBase import RefactoringDialogBase
@@ -41,9 +41,10 @@
         self.__filename = filename
         self.__offset = offset
         
-        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.__inlinerKind = ""

eric ide

mercurial