import platform import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from courseDlg import * class AddCourseDlg(CourseDlg): def __init__(self, parent=None): super(AddCourseDlg, self).__init__(parent) buttonBox = QDialogButtonBox(QDialogButtonBox.Ok|QDialogButtonBox.Cancel) self.layout.addWidget(buttonBox, 3, 0, 1, 2) self.connect(buttonBox, SIGNAL("accepted()"), self, SLOT("accept()")) self.connect(buttonBox, SIGNAL("rejected()"), self, SLOT("reject()")) self.setWindowTitle(self.trUtf8("Add new course"))