from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class WaitforStart(WaitPage): wait_for_all_groups = True class StartCT(Page): pass timeout_seconds = 30 class CT(Page): form_model = 'player' form_fields = ['ct_1','ct_2','ct_3','ct_4','ct_5','ct_6', 'ct_7','ct_8','ct_9','ct_10','ct_11'] timeout_seconds = 430 class ResultsWaitPage(WaitPage): def after_all_players_arrive(self): self.group.set_payoffs() class AllWait(WaitPage): wait_for_all_groups = True class Results(Page): pass page_sequence = [WaitforStart, StartCT, WaitforStart, CT, ResultsWaitPage, AllWait, Results]