from otree.api import Currency as c, currency_range from . import models from ._builtin import Page, WaitPage from .models import Constants import random import time class StartPage(Page): pass # class VolunteerPage(Page): # def is_displayed(self): # return self.participant.vars['practise'] > 0 # class NoQuestionPage(Page): # def is_displayed(self): # return self.participant.vars['practise'] == 0 class QuestionPage(Page): # def is_displayed(self): # return self.participant.vars['perform'] == 1 # timer_text = 'Testin bitmesine kalan süre' form_model = 'player' form_fields = ['q1', 'q2', 'q3'] def get_timeout_seconds(self): return 90 def vars_for_template(self): pass # def before_next_page(self): # self.player.set_performances() class End(Page): pass page_sequence = [ StartPage, # NoQuestionPage, QuestionPage, # ResultsWaitPage, End ]