43 |
43 |
44 def __updateOkButton(self): |
44 def __updateOkButton(self): |
45 """ |
45 """ |
46 Private slot to update the enable state of the OK button. |
46 Private slot to update the enable state of the OK button. |
47 """ |
47 """ |
48 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( |
48 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
49 bool(self.nameEdit.text())) |
49 bool(self.nameEdit.text())) |
50 |
50 |
51 @pyqtSlot(str) |
51 @pyqtSlot(str) |
52 def on_nameEdit_textChanged(self, txt): |
52 def on_nameEdit_textChanged(self, txt): |
53 """ |
53 """ |