RefactoringRope/UseFunctionDialog.py

changeset 74
0973b175e2ad
parent 62
1077db8d0589
child 76
936b2a98fe4e
equal deleted inserted replaced
73:f712afb572c7 74:0973b175e2ad
40 40
41 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) 41 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
42 self.__previewButton = self.buttonBox.addButton( 42 self.__previewButton = self.buttonBox.addButton(
43 self.trUtf8("Preview"), QDialogButtonBox.ActionRole) 43 self.trUtf8("Preview"), QDialogButtonBox.ActionRole)
44 self.__previewButton.setDefault(True) 44 self.__previewButton.setDefault(True)
45
46 msh = self.minimumSizeHint()
47 self.resize(max(self.width(), msh.width()), msh.height())
45 48
46 @pyqtSlot(QAbstractButton) 49 @pyqtSlot(QAbstractButton)
47 def on_buttonBox_clicked(self, button): 50 def on_buttonBox_clicked(self, button):
48 """ 51 """
49 Private slot to act on the button pressed. 52 Private slot to act on the button pressed.

eric ide

mercurial