32 @param hg reference to the Mercurial interface object (Hg) |
32 @param hg reference to the Mercurial interface object (Hg) |
33 @param useClient flag indicating to use the command server client |
33 @param useClient flag indicating to use the command server client |
34 if possible (boolean) |
34 if possible (boolean) |
35 @param parent parent widget (QWidget) |
35 @param parent parent widget (QWidget) |
36 """ |
36 """ |
37 super(HgDialog, self).__init__(parent) |
37 super().__init__(parent) |
38 self.setupUi(self) |
38 self.setupUi(self) |
39 self.setWindowFlags(Qt.WindowType.Window) |
39 self.setWindowFlags(Qt.WindowType.Window) |
40 |
40 |
41 self.buttonBox.button( |
41 self.buttonBox.button( |
42 QDialogButtonBox.StandardButton.Close).setEnabled(False) |
42 QDialogButtonBox.StandardButton.Close).setEnabled(False) |