from otree.api import * c = cu doc = '' class Constants(BaseConstants): name_in_url = 'instructions' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Instructions = models.StringField(choices=[['1 portion(s) of chips and 5 portion(s) of peanuts', '1 portion(s) of chips and 5 portion(s) of peanuts'], ['3 portion(s) of chips and 3 portion(s) of peanuts', '3 portion(s) of chips and 3 portion(s) of peanuts'], ['4 portion(s) of chips and 1 portion(s) of peanuts', '4 portion(s) of chips and 1 portion(s) of peanuts']], label='', widget=widgets.RadioSelect) class Instructions(Page): form_model = 'player' form_fields = ['Instructions'] page_sequence = [Instructions]