from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, ) author = 'Karthik' doc = """ Questionnaire for PANAS """ class Constants(BaseConstants): name_in_url = 'questionnaire_panas' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): distressed = models.PositiveIntegerField(verbose_name='1. 忧虑', choices=[[1, '非常轻微或完全没有'], [2, '一点点'], [3, '中等'], [4, '相当多'], [5, '非常多']], widget=widgets.RadioSelectHorizontal()) excited = models.PositiveIntegerField(verbose_name='2. 激动', choices=[[1, '非常轻微或完全没有'], [2, '一点点'], [3, '中等'], [4, '相当多'], [5, '非常多']], widget=widgets.RadioSelectHorizontal()) upset = models.PositiveIntegerField(verbose_name='3. 沮丧', choices=[[1, '非常轻微或完全没有'], [2, '一点点'], [3, '中等'], [4, '相当多'], [5, '非常多']], widget=widgets.RadioSelectHorizontal()) scared = models.PositiveIntegerField(verbose_name='4. 惊恐', choices=[[1, '非常轻微或完全没有'], [2, '一点点'], [3, '中等'], [4, '相当多'], [5, '非常多']], widget=widgets.RadioSelectHorizontal()) enthusiastic = models.PositiveIntegerField(verbose_name='5. 充满激情', choices=[[1, '非常轻微或完全没有'], [2, '一点点'], [3, '中等'], [4, '相当多'], [5, '非常多']], widget=widgets.RadioSelectHorizontal()) alert = models.PositiveIntegerField(verbose_name='6. 警惕', choices=[[1, '非常轻微或完全没有'], [2, '一点点'], [3, '中等'], [4, '相当多'], [5, '非常多']], widget=widgets.RadioSelectHorizontal()) inspired = models.PositiveIntegerField(verbose_name='7. 受到鼓舞', choices=[[1, '非常轻微或完全没有'], [2, '一点点'], [3, '中等'], [4, '相当多'], [5, '非常多']], widget=widgets.RadioSelectHorizontal()) nervous = models.PositiveIntegerField(verbose_name='8. 紧张', choices=[[1, '非常轻微或完全没有'], [2, '一点点'], [3, '中等'], [4, '相当多'], [5, '非常多']], widget=widgets.RadioSelectHorizontal()) determined = models.PositiveIntegerField(verbose_name='9. 坚定', choices=[[1, '非常轻微或完全没有'], [2, '一点点'], [3, '中等'], [4, '相当多'], [5, '非常多']], widget=widgets.RadioSelectHorizontal()) afraid = models.PositiveIntegerField(verbose_name='10. 害怕', choices=[[1, '非常轻微或完全没有'], [2, '一点点'], [3, '中等'], [4, '相当多'], [5, '非常多']], widget=widgets.RadioSelectHorizontal())