RefactoringRope/IntroduceFactoryDialog.py

changeset 87
1fbf5fdbe721
parent 76
936b2a98fe4e
child 88
e71619898d0f
child 94
03d6a17c66ac
equal deleted inserted replaced
84:f8e0131a4761 87:1fbf5fdbe721
7 Module implementing the Introduce Factory dialog. 7 Module implementing the Introduce Factory dialog.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt4.QtCore import pyqtSlot 12 from PyQt5.QtCore import pyqtSlot
13 from PyQt4.QtGui import QDialogButtonBox, QAbstractButton 13 from PyQt5.QtWidgets import QDialogButtonBox, QAbstractButton
14 14
15 from Ui_IntroduceFactoryDialog import Ui_IntroduceFactoryDialog 15 from Ui_IntroduceFactoryDialog import Ui_IntroduceFactoryDialog
16 from RefactoringDialogBase import RefactoringDialogBase 16 from RefactoringDialogBase import RefactoringDialogBase
17 17
18 18
37 self.__introducer = introducer 37 self.__introducer = introducer
38 38
39 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) 39 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
40 self.__okButton.setEnabled(False) 40 self.__okButton.setEnabled(False)
41 self.__previewButton = self.buttonBox.addButton( 41 self.__previewButton = self.buttonBox.addButton(
42 self.trUtf8("Preview"), QDialogButtonBox.ActionRole) 42 self.tr("Preview"), QDialogButtonBox.ActionRole)
43 self.__previewButton.setDefault(True) 43 self.__previewButton.setDefault(True)
44 44
45 self.nameEdit.setText("create") 45 self.nameEdit.setText("create")
46 self.nameEdit.selectAll() 46 self.nameEdit.selectAll()
47 47

eric ide

mercurial