from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Introduction(Page): def is_displayed(self) -> bool: return( # Show this page only for treatment 3 self.participant.vars['treatment'] == 3 ) class ExecutiveStory(Page): def is_displayed(self) -> bool: return( # Show this page only for treatment 3 self.participant.vars['treatment'] == 3 ) class ViewArguments(Page): timeout_seconds = Constants.argument_viewing_time def is_displayed(self) -> bool: return( # Show this page only for treatment 3 self.participant.vars['treatment'] == 3 ) class MostConvincingArguments(Page): form_model = 'player' form_fields = [ 'MOST_CONV_PRO_ARG', 'MOST_CONV_CON_ARG' ] def is_displayed(self) -> bool: return( # Show this page only for treatment 3 self.participant.vars['treatment'] == 3 ) page_sequence = [ Introduction, ExecutiveStory, ViewArguments, MostConvincingArguments ]