31 Constructor |
31 Constructor |
32 |
32 |
33 @param cmdname name of the ericapi generator (string) |
33 @param cmdname name of the ericapi generator (string) |
34 @param parent parent widget of this dialog (QWidget) |
34 @param parent parent widget of this dialog (QWidget) |
35 """ |
35 """ |
36 QDialog.__init__(self, parent) |
36 super().__init__(parent) |
37 self.setModal(True) |
37 self.setModal(True) |
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) |