from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Welcome(Page): pass class Instructions(Page): pass class Comprehension(Page): form_model = 'player' form_fields = ['Comprehension1', 'Comprehension2'] def before_next_page(player): 'set_cq' class BinaryChoice(Page): form_model = 'player' form_fields = ['BC1'] #def is_displayed(player): # return player.cq == True class BinaryChoice2(Page): form_model = 'player' form_fields = ['BC2'] #def is_displayed(player): # return player.cq == True class BinaryChoice3(Page): form_model = 'player' form_fields = ['BC2'] #def is_displayed(player): # return player.cq == True class PriceList(Page): form_model = 'player' form_fields = ['PL1', 'PL2', 'PL3', 'PL4', 'PL5', 'PL6', 'PL7', 'PL8', 'PL9', 'PL10','PL11'] class ResultsWaitPage(WaitPage): def before_next_page(player): 'set_pay' class Results(Page): pass page_sequence = [Welcome, Instructions, Comprehension, BinaryChoice, BinaryChoice2, BinaryChoice3, PriceList, ResultsWaitPage, Results]