RefactoringRope/MethodToMethodObjectDialog.py

changeset 87
1fbf5fdbe721
parent 76
936b2a98fe4e
child 88
e71619898d0f
child 94
03d6a17c66ac
--- a/RefactoringRope/MethodToMethodObjectDialog.py	Mon May 12 19:08:18 2014 +0200
+++ b/RefactoringRope/MethodToMethodObjectDialog.py	Sun Jul 06 14:23:25 2014 +0200
@@ -9,8 +9,8 @@
 
 from __future__ import unicode_literals
 
-from PyQt4.QtCore import pyqtSlot
-from PyQt4.QtGui import QDialogButtonBox, QAbstractButton
+from PyQt5.QtCore import pyqtSlot
+from PyQt5.QtWidgets import QDialogButtonBox, QAbstractButton
 
 from Ui_MethodToMethodObjectDialog import Ui_MethodToMethodObjectDialog
 from RefactoringDialogBase import RefactoringDialogBase
@@ -40,7 +40,7 @@
         self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
         self.__okButton.setEnabled(False)
         self.__previewButton = self.buttonBox.addButton(
-            self.trUtf8("Preview"), QDialogButtonBox.ActionRole)
+            self.tr("Preview"), QDialogButtonBox.ActionRole)
         self.__previewButton.setDefault(True)
         
         self.nameEdit.setText("_MethodObject")

eric ide

mercurial