multiple choices questions now allow for no answer at all

This commit is contained in:
Faraphel 2023-12-31 14:49:32 +01:00
parent f7af75b0b8
commit 4a8a80a206

View file

@ -102,6 +102,10 @@ class BaseChoiceQuestion(BaseSurvey):
# add the navigation # add the navigation
self._layout.addWidget(self.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 @classmethod
def from_dict(cls, data: dict[str, Any], signals: dict[str, pyqtSignal]) -> "BaseChoiceQuestion": def from_dict(cls, data: dict[str, Any], signals: dict[str, pyqtSignal]) -> "BaseChoiceQuestion":
return cls( return cls(