from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class MyPage(Page): form_model='player' def vars_for_template(self): number = self.participant.vars['num_for_bonus'] bonus = self.participant.vars['question_bonus'] color = self.participant.vars['ball_color'] return dict(number = number, bonus = bonus, color=color) page_sequence = [MyPage]