from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants """class quiz_Page(Page): form_model = "player" form_fields = ["Q1_choice", "Q2_choice", "Q3_choice", "Q4_choice","Q5_choice"]""" class Instruction(Page): pass class Choice(Page): form_model = "player" form_fields = ["Complex_choice"] class WTP(Page): form_model = "player" form_fields = ["Q1_choice"] class Waitforall(WaitPage): def after_all_players_arrive(self): for p in self.group.get_players(): print(p.id_in_group) p.participant.vars['choice'] = p.Complex_choice p.participant.vars['pay'] = p.Q1_choice choice = p.participant.vars['choice'] pay = p.participant.vars['pay'] print('elicitation') print(choice) print(pay) class Results(Page): pass page_sequence = [Instruction, Choice, WTP, Waitforall, Results]