from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Mypage(Page): timeout_seconds = 300 class Instruction(Page): pass class Page1(Page): def is_displayed(self): return self.player.id_in_group == 1 class Page2(Page): def is_displayed(self): return self.player.id_in_group == 2 class Page3(Page): def is_displayed(self): return self.player.id_in_group == 3 class Page4(Page): def is_displayed(self): return self.player.id_in_group == 4 class Page5(Page): def is_displayed(self): return self.player.id_in_group == 5 class Wait(WaitPage): pass class Answer(Page): form_model = 'player' form_fields = ['Answer'] class Result(Page): pass page_sequence = [Instruction,Page1,Page2,Page3,Page4,Page5,Wait,Mypage,Answer,Result]