43 if possible (boolean) |
43 if possible (boolean) |
44 @param parent parent widget (QWidget) |
44 @param parent parent widget (QWidget) |
45 """ |
45 """ |
46 super(HgDialog, self).__init__(parent) |
46 super(HgDialog, self).__init__(parent) |
47 self.setupUi(self) |
47 self.setupUi(self) |
|
48 self.setWindowFlags(Qt.Window) |
48 |
49 |
49 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
50 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
50 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
51 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
51 |
52 |
52 self.proc = None |
53 self.proc = None |