from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) class Constants(BaseConstants): name_in_url = 'survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField(label='Age ?', min=5, max=125) Paysdenaissance = models.StringField(label='Pays de naissance') gender = models.StringField( choices=[['Homme', 'Homme'], ['Femme', 'Femme']], label='Genre ?', widget=widgets.RadioSelect, ) item1 = models.StringField( choices=[['1', "Pas du tout d'accord"], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', "Tout à fait d'accord"]], label= "Peu importe la quantité que j'ai, j'en veux toujours plus.", #'No matter how much I have of something, I always want more', widget=widgets.RadioSelect, ) item2 = models.StringField( choices=[['1', "Pas du tout d'accord"], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', "Tout à fait d'accord"]], label="On n'en n'a jamais assez.", #One can never have enough widget = widgets.RadioSelect, ) item3 = models.StringField( choices=[['1', "Pas du tout d'accord"], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', "Tout à fait d'accord"]], label='Même lorsque je suis comblé(e), je cherche toujours à obtenir plus.', #Even when I am fulfilled, I often seek more widget = widgets.RadioSelect, ) item4 = models.StringField( choices=[['1', "Pas du tout d'accord"], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', "Tout à fait d'accord"]], label='Faire toujours plus et mieux est un objectif important pour moi.', #The pursuit of more and better is an important goal in life for me widget = widgets.RadioSelect, ) item5 = models.StringField( choices=[['1', "Pas du tout d'accord"], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', "Tout à fait d'accord"]], label='Une vie simple et basique me suffit.', #A simple basic life is sufficient for me (R) widget = widgets.RadioSelect, ) item6 = models.StringField( choices=[['1', "Pas du tout d'accord"], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', "Tout à fait d'accord"]], label="Je me contente de ce que j'ai.", #I am easily satisfied with what I’ve got (R) widget = widgets.RadioSelect, )