from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '' class Constants(BaseConstants): name_in_url = 'Part_I' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Decision_expectation = models.BooleanField(choices=[[True, 'Action 1'], [False, 'Action 2']], label='What do you expect the other player to choose?', widget=widgets.RadioSelectHorizontal) Decision_action = models.BooleanField(choices=[[True, 'Action 1'], [False, 'Action 2']], label='Which action do you choose?', widget=widgets.RadioSelectHorizontal) def my_method(self): pass