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 = 'Test_kinken' players_per_group = None num_rounds = 1 instruction_summary='../_templates/Instruction_Summary_kinken.html' class Subsession(BaseSubsession): Treatment = models.IntegerField() def creating_session(self): self.Treatment = self.session.config['Treatment'] class Group(BaseGroup): pass class Player(BasePlayer): q_kabu = models.CharField(initial=None, choices=['1株', '10株', '100株', '300株', '500株'], verbose_name='株主優待は何株以上持っていた場合に1枚もらえますか?', widget=widgets.RadioSelect()) q_incentive = models.CharField(initial=None, choices=['0円','50円', '100円', '150円', '200円'], verbose_name='5期末に、資産を250万円、株を300株持っていた時、いくら報酬を貰うことができますか?', widget=widgets.RadioSelect())