RefactoringRope/MethodToMethodObjectDialog.py

branch
eric5
changeset 88
e71619898d0f
parent 86
3339c75dc777
equal deleted inserted replaced
86:3339c75dc777 88:e71619898d0f
7 Module implementing the Method To Method object dialog. 7 Module implementing the Method To Method object dialog.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt5.QtCore import pyqtSlot 12 from PyQt4.QtCore import pyqtSlot
13 from PyQt5.QtWidgets import QDialogButtonBox, QAbstractButton 13 from PyQt4.QtGui import QDialogButtonBox, QAbstractButton
14 14
15 from Ui_MethodToMethodObjectDialog import Ui_MethodToMethodObjectDialog 15 from Ui_MethodToMethodObjectDialog import Ui_MethodToMethodObjectDialog
16 from RefactoringDialogBase import RefactoringDialogBase 16 from RefactoringDialogBase import RefactoringDialogBase
17 17
18 18
38 self.__converter = converter 38 self.__converter = converter
39 39
40 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) 40 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
41 self.__okButton.setEnabled(False) 41 self.__okButton.setEnabled(False)
42 self.__previewButton = self.buttonBox.addButton( 42 self.__previewButton = self.buttonBox.addButton(
43 self.tr("Preview"), QDialogButtonBox.ActionRole) 43 self.trUtf8("Preview"), QDialogButtonBox.ActionRole)
44 self.__previewButton.setDefault(True) 44 self.__previewButton.setDefault(True)
45 45
46 self.nameEdit.setText("_MethodObject") 46 self.nameEdit.setText("_MethodObject")
47 self.nameEdit.selectAll() 47 self.nameEdit.selectAll()
48 48

eric ide

mercurial