def __init__(self, parent, title, mode, hint): QTabDialog.__init__(self, parent, title, True, Qt.WStyle_DialogBorder) self.title = title self.setApplyButton() self.connect(self, SIGNAL("applyButtonPressed()"), self.slotApplyButtonPressed) self.setSizeGripEnabled(True) self.setOkButton() self.accepted = False self.hint = hint self.mode = mode self.tabs = [] self.setCaption(title) self.setCancelButton("&Cancel") if self.hint != None and self.hint != "": self.setHelpButton() self.connect(self, SIGNAL("helpButtonPressed()"), self.slotHelp) self.resize(self.minimumSize())
def addChildTab(self, title, tabForm, record, type = constants.MASTER): QTabDialog.addTab(self, tabForm, title) self.tabs.append((tabForm, record))