39 |
39 |
40 def __updateOkButton(self): |
40 def __updateOkButton(self): |
41 """ |
41 """ |
42 Private slot to set the state of the OK button. |
42 Private slot to set the state of the OK button. |
43 """ |
43 """ |
44 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( |
44 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
45 bool(self.leftEdit.text()) and |
45 bool(self.leftEdit.text()) and |
46 bool(self.rightEdit.text())) |
46 bool(self.rightEdit.text())) |
47 |
47 |
48 @pyqtSlot(str) |
48 @pyqtSlot(str) |
49 def on_leftEdit_textChanged(self, txt): |
49 def on_leftEdit_textChanged(self, txt): |