49 whether we were called from within the eric5 IDE |
49 whether we were called from within the eric5 IDE |
50 @param ui reference to the UI object |
50 @param ui reference to the UI object |
51 @param parent parent widget of this dialog (QWidget) |
51 @param parent parent widget of this dialog (QWidget) |
52 @param name name of this dialog (string) |
52 @param name name of this dialog (string) |
53 """ |
53 """ |
54 QWidget.__init__(self, parent) |
54 super().__init__(parent) |
55 if name: |
55 if name: |
56 self.setObjectName(name) |
56 self.setObjectName(name) |
57 self.setupUi(self) |
57 self.setupUi(self) |
58 |
58 |
59 self.startButton = self.buttonBox.addButton( |
59 self.startButton = self.buttonBox.addButton( |
578 Constructor |
578 Constructor |
579 |
579 |
580 @param prog filename of the program to open |
580 @param prog filename of the program to open |
581 @param parent reference to the parent widget (QWidget) |
581 @param parent reference to the parent widget (QWidget) |
582 """ |
582 """ |
583 QMainWindow.__init__(self, parent) |
583 super().__init__(parent) |
584 self.cw = UnittestDialog(prog=prog, parent=self) |
584 self.cw = UnittestDialog(prog=prog, parent=self) |
585 self.cw.installEventFilter(self) |
585 self.cw.installEventFilter(self) |
586 size = self.cw.size() |
586 size = self.cw.size() |
587 self.setCentralWidget(self.cw) |
587 self.setCentralWidget(self.cw) |
588 self.resize(size) |
588 self.resize(size) |