from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'Questionnaire' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): name = models.StringField(label='あなたのニックネームを教えてください') age = models.IntegerField(label='あなたの年齢を教えてください', min=10, max=125) gender = models.StringField( choices=[['男性', '男性'], ['女性', '女性'], ['その他/回答したくない', 'その他/回答したくない']], label='あなたの性別は?', widget=widgets.RadioSelect, ) feedback = models.LongStringField(label='今回の実験の感想を教えてください') happy = models.StringField( choices=[['いい', 'いい'], ['悪い', '悪い']], label='あなたは今、気分が良いですか?', widget=widgets.RadioSelect, )