RefactoringRope/ExtractDialog.py

changeset 74
0973b175e2ad
parent 62
1077db8d0589
child 76
936b2a98fe4e
equal deleted inserted replaced
73:f712afb572c7 74:0973b175e2ad
38 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) 38 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
39 self.__okButton.setEnabled(False) 39 self.__okButton.setEnabled(False)
40 self.__previewButton = self.buttonBox.addButton( 40 self.__previewButton = self.buttonBox.addButton(
41 self.trUtf8("Preview"), QDialogButtonBox.ActionRole) 41 self.trUtf8("Preview"), QDialogButtonBox.ActionRole)
42 self.__previewButton.setDefault(True) 42 self.__previewButton.setDefault(True)
43
44 msh = self.minimumSizeHint()
45 self.resize(max(self.width(), msh.width()), msh.height())
43 46
44 @pyqtSlot(str) 47 @pyqtSlot(str)
45 def on_newNameEdit_textChanged(self, text): 48 def on_newNameEdit_textChanged(self, text):
46 """ 49 """
47 Private slot to react to changes of the new name. 50 Private slot to react to changes of the new name.

eric ide

mercurial