PyUnit/UnittestDialog.py

changeset 1131
7781e396c903
parent 1112
8a7d1b9d18db
child 1166
a94b0a2fafd7
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
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)

eric ide

mercurial