RefactoringRope/ConfirmationDialog.py

changeset 74
0973b175e2ad
parent 62
1077db8d0589
child 76
936b2a98fe4e
equal deleted inserted replaced
73:f712afb572c7 74:0973b175e2ad
38 38
39 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) 39 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
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(QAbstractButton) 47 @pyqtSlot(QAbstractButton)
45 def on_buttonBox_clicked(self, button): 48 def on_buttonBox_clicked(self, button):
46 """ 49 """
47 Private slot to act on the button pressed. 50 Private slot to act on the button pressed.

eric ide

mercurial