def validateFilePath(self): """Check that the file path is valid.""" self.status_widget.clear(1) path = self.file_widget.getPath() self._file_valid = utils.filePathIsValid(path) if not self._file_valid: self.status_widget.addError(1, "Invalid file path") self.validateAllValues()
def validateFilePath(self): """Check that the file path is valid.""" self.status_widget.clear(1) path = self.file_widget.getPath() self._file_valid = utils.filePathIsValid(path) if not self._file_valid: self.status_widget.addError(1, "Invalid file path") self.validateAllValues()