32 Constructor |
32 Constructor |
33 |
33 |
34 @param text text to be shown by the label (string) |
34 @param text text to be shown by the label (string) |
35 @param parent parent widget (QWidget) |
35 @param parent parent widget (QWidget) |
36 """ |
36 """ |
37 QDialog.__init__(self, parent) |
37 super().__init__(parent) |
38 self.setupUi(self) |
38 self.setupUi(self) |
39 |
39 |
40 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
40 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
41 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
41 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
42 |
42 |