from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Contribution(Page): form_model = 'player' form_fields = ['contribution'] class ResultsWaitPage(WaitPage): body_text = 'Waiting for other players to make their contributions' def after_all_players_arrive(self): self.group.my_method() class Results(Page): form_model = 'player' page_sequence = [Contribution, ResultsWaitPage, Results]