Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)
Esempio n. 5
0
    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)
Esempio n. 6
0
    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)