32 @param parent parent widget of this dialog (QWidget) |
32 @param parent parent widget of this dialog (QWidget) |
33 """ |
33 """ |
34 super(HgCommandDialog, self).__init__(parent) |
34 super(HgCommandDialog, self).__init__(parent) |
35 self.setupUi(self) |
35 self.setupUi(self) |
36 |
36 |
37 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
37 self.okButton = self.buttonBox.button( |
|
38 QDialogButtonBox.StandardButton.Ok) |
38 self.okButton.setEnabled(False) |
39 self.okButton.setEnabled(False) |
39 |
40 |
40 self.commandCombo.clear() |
41 self.commandCombo.clear() |
41 self.commandCombo.addItems(argvList) |
42 self.commandCombo.addItems(argvList) |
42 if len(argvList) > 0: |
43 if len(argvList) > 0: |