from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Introduction(Page): form_model = 'player' class Contribution(Page): form_model = 'player' form_fields = ['contribution'] def before_next_page(self): self.player.set_payoffs() class Results(Page): form_model = 'player' page_sequence = [Introduction, Contribution, Results]