From 4a8a80a2066830ad5acc99335e43be4421f6467e Mon Sep 17 00:00:00 2001 From: Faraphel Date: Sun, 31 Dec 2023 14:49:32 +0100 Subject: [PATCH] multiple choices questions now allow for no answer at all --- source/survey/base/BaseChoiceQuestion.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/survey/base/BaseChoiceQuestion.py b/source/survey/base/BaseChoiceQuestion.py index d68ee7a..4ba9e47 100644 --- a/source/survey/base/BaseChoiceQuestion.py +++ b/source/survey/base/BaseChoiceQuestion.py @@ -102,6 +102,10 @@ class BaseChoiceQuestion(BaseSurvey): # add the navigation self._layout.addWidget(self.navigation) + if not self.are_buttons_exclusive(): + # if the buttons are not exclusive, allow to select no options + self.navigation.show_forward() + @classmethod def from_dict(cls, data: dict[str, Any], signals: dict[str, pyqtSignal]) -> "BaseChoiceQuestion": return cls(