RefactoringRope/InlineDialog.py

changeset 74
0973b175e2ad
parent 62
1077db8d0589
child 76
936b2a98fe4e
equal deleted inserted replaced
73:f712afb572c7 74:0973b175e2ad
55 55
56 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) 56 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok)
57 self.__previewButton = self.buttonBox.addButton( 57 self.__previewButton = self.buttonBox.addButton(
58 self.trUtf8("Preview"), QDialogButtonBox.ActionRole) 58 self.trUtf8("Preview"), QDialogButtonBox.ActionRole)
59 self.__previewButton.setDefault(True) 59 self.__previewButton.setDefault(True)
60
61 msh = self.minimumSizeHint()
62 self.resize(max(self.width(), msh.width()), msh.height())
60 63
61 @pyqtSlot(QAbstractButton) 64 @pyqtSlot(QAbstractButton)
62 def on_buttonBox_clicked(self, button): 65 def on_buttonBox_clicked(self, button):
63 """ 66 """
64 Private slot to act on the button pressed. 67 Private slot to act on the button pressed.

eric ide

mercurial