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 4 self.participant.vars['treatment'] == 4 ) class ViewCacaoText(Page): timeout_seconds = Constants.cacao_text_viewing_time def is_displayed(self) -> bool: return( # Show this page only for treatment 4 self.participant.vars['treatment'] == 4 ) page_sequence = [ Introduction, ViewCacaoText ]