40 @param mode mode of the dialog |
40 @param mode mode of the dialog |
41 @type str |
41 @type str |
42 @param parent reference to the parent widget |
42 @param parent reference to the parent widget |
43 @type QWidget |
43 @type QWidget |
44 """ |
44 """ |
45 super(QtHelpDocumentationSelectionDialog, self).__init__(parent) |
45 super().__init__(parent) |
46 self.setupUi(self) |
46 self.setupUi(self) |
47 |
47 |
48 if mode == QtHelpDocumentationSelectionDialog.AddMode: |
48 if mode == QtHelpDocumentationSelectionDialog.AddMode: |
49 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).hide() |
49 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).hide() |
50 else: |
50 else: |