15 lines
374 B
Python
15 lines
374 B
Python
from typing import Type
|
|
|
|
from PyQt6.QtWidgets import QAbstractButton, QRadioButton
|
|
|
|
from source.survey.base import BaseChoiceQuestion
|
|
|
|
|
|
class SingleChoiceQuestion(BaseChoiceQuestion):
|
|
@classmethod
|
|
def get_button_choice_class(cls) -> Type[QAbstractButton]:
|
|
return QRadioButton
|
|
|
|
@classmethod
|
|
def are_buttons_exclusive(cls) -> bool:
|
|
return True
|