31 @param mode mode of the dialog (HgBookmarksInOutDialog.INCOMING, |
31 @param mode mode of the dialog (HgBookmarksInOutDialog.INCOMING, |
32 HgBookmarksInOutDialog.OUTGOING) |
32 HgBookmarksInOutDialog.OUTGOING) |
33 @param parent reference to the parent widget (QWidget) |
33 @param parent reference to the parent widget (QWidget) |
34 @exception ValueError raised to indicate an invalid dialog mode |
34 @exception ValueError raised to indicate an invalid dialog mode |
35 """ |
35 """ |
36 super(HgBookmarksInOutDialog, self).__init__(parent) |
36 super().__init__(parent) |
37 self.setupUi(self) |
37 self.setupUi(self) |
38 self.setWindowFlags(Qt.WindowType.Window) |
38 self.setWindowFlags(Qt.WindowType.Window) |
39 |
39 |
40 self.buttonBox.button( |
40 self.buttonBox.button( |
41 QDialogButtonBox.StandardButton.Close).setEnabled(False) |
41 QDialogButtonBox.StandardButton.Close).setEnabled(False) |