def set_status(self, inputcheck): # Use GUIDialogInputCheckHandler to set the error message GUIDialogInputCheckHandler.set_status(self, inputcheck) # Set the sensitivity of the add button based on the result self._addButton.set_sensitive( inputcheck.check_status == InputCheck.CHECK_OK)
def set_status(self, inputcheck): # Use the superclass set_status to set the error message GUIDialogInputCheckHandler.set_status(self, inputcheck) # Make the save button insensitive if the check fails if inputcheck.check_status == InputCheck.CHECK_OK: self._saveButton.set_sensitive(True) else: self._saveButton.set_sensitive(False)
def set_status(self, inputcheck): # Use the superclass set_status to set the error message GUIDialogInputCheckHandler.set_status(self, inputcheck) # Make the save button insensitive if the check fails if inputcheck.check_status == InputCheck.CHECK_OK: self._saveButton.set_sensitive(True) else: self._saveButton.set_sensitive(False)
def set_status(self, inputcheck): # Use the superclass set_status to set the error message GUIDialogInputCheckHandler.set_status(self, inputcheck) # Change the sensitivity of the Save button self._save_button.set_sensitive(next(self.failed_checks, None) == None)
def set_status(self, inputcheck): # Use the superclass set_status to set the error message GUIDialogInputCheckHandler.set_status(self, inputcheck) # Change the sensitivity of the Save button self._save_button.set_sensitive(next(self.failed_checks, None) == None)
def set_status(self, inputcheck): # Use GUIDialogInputCheckHandler to set the error message GUIDialogInputCheckHandler.set_status(self, inputcheck) # Set the sensitivity of the add button based on the result self._addButton.set_sensitive(inputcheck.check_status == InputCheck.CHECK_OK)