--- 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 = ""