from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import random class Constants(BaseConstants): name_in_url = 'SQ_Question' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): time1_1 = models.IntegerField( choices=[ [1, 'A'],[2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time1_2 = models.IntegerField( choices=[ [1, 'A'],[2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time1_3 = models.IntegerField( choices=[ [1, 'A'],[2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time1_4 = models.IntegerField( choices=[ [1, 'A'],[2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time1_5 = models.IntegerField( choices=[ [1, 'A'],[2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time1_6 = models.IntegerField( choices=[ [1, 'A'],[2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time1_7 = models.IntegerField( choices=[ [1, 'A'],[2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time1_8 = models.IntegerField( choices=[ [1, 'A'],[2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time1_9 = models.IntegerField( choices=[ [1, 'A'],[2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time1_10 = models.IntegerField( choices=[ [1, 'A'],[2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time2_1 = models.IntegerField( choices=[ [1, 'A'], [2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time2_2 = models.IntegerField( choices=[ [1, 'A'], [2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time2_3 = models.IntegerField( choices=[ [1, 'A'], [2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time2_4 = models.IntegerField( choices=[ [1, 'A'], [2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time2_5 = models.IntegerField( choices=[ [1, 'A'], [2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time2_6 = models.IntegerField( choices=[ [1, 'A'], [2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time2_7 = models.IntegerField( choices=[ [1, 'A'], [2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time2_8 = models.IntegerField( choices=[ [1, 'A'], [2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time2_9 = models.IntegerField( choices=[ [1, 'A'], [2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') time2_10 = models.IntegerField( choices=[ [1, 'A'], [2, 'B'], ], widget=widgets.RadioSelectHorizontal, label='好ましい方を選択') major = models.IntegerField( choices=[ [1, '総合人間学部/人間・環境学研究科'], [2, '文学部/文学研究科'], [3, '教育学部/教育学研究科'], [4, '法学部/法学研究科'], [5, '経済学部/経済学研究科'], [6, '理学部/理学研究科'], [7, '医学部/医学研究科'], [8, '薬学部/薬学研究科'], [9, '工学部/工学研究科'], [10, '農学部/農学研究科'], [11, 'その他'], ], label='問3:所属を以下の中から選択してください') year = models.IntegerField( choices=[ [1, '学部1年'], [2, '学部2年'], [3, '学部3年'], [4, '学部4年以上'], [5, '大学院'], ], label='問4:学年を選んでください', widget=widgets.RadioSelect) age = models.IntegerField( label='問5:あなたの年齢を入力してください', min=13, max=99) gender = models.IntegerField( choices=[ [1, '男性'], [2, '女性'], ], label='問6:あなたの性別を選んでください', widget=widgets.RadioSelect) experience = models.IntegerField( choices=[ [1, '今回が初めて'], [2, '今回が2回目'], [3, '今回を含めて3回以上参加'], ], label='問7:経済実験への参加経験を教えてください', widget=widgets.RadioSelect) today = models.IntegerField( choices=[ [1, 'はい、本実験のために来た'], [2, 'いいえ、授業などの他の用事のついでに参加した'], ], label='問8:本日は本実験のためだけに大学に来られましたか?', widget=widgets.RadioSelect) from_house = models.IntegerField( choices=[ [1, '15分未満'], [2, '15分から30分'], [3, '30分から60分'], [4, '60分以上'], ], label='問9:ご自宅から本実験室までの所要時間を教えてください', widget=widgets.RadioSelect) free_answer = models.LongStringField( label='問10:よろしければご意見・ご感想をお聞かせください')