from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) import random author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'survey_draft1c' players_per_group = None num_rounds = 1 show_up_fee = "4 Euros" date_session_selected = "5 May 2020" date_ddl_part1 = "1 May 2020" class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): year_birth = models.IntegerField(label="What is your year of birth?", min=1900, max=2020) gender = models.IntegerField(label="Could you indicate what is your gender?", choices=[[1, "Female"], [2, "Male"], [3, "Prefer not to declare"]]) major_econ = models.BooleanField(label="Is your major in Economics or Business?", choices=[[True, "Yes"], [False, "No"]]) major_other = models.LongStringField(label="If not, could you please specify what is your major?", blank=True) big_1 = models.IntegerField(choices=[[1, "\t \t \t 1 \t \t \t"], [2, "\t 2 \t "], [3, "\t \t \t 3 \t \t \t"], [4, "\t \t \t 4 \t \t \t"], [5, "\t \t \t 5 \t \t \t"]], widget=widgets.RadioSelectHorizontal(), label="Is talkative") big_2 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Tends to find fault with others") big_3 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Does a thorough job") big_4 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Is depressed, blue") big_5 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Is original, comes up with new ideas") big_6 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Is reserved") big_7 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Is helpful and unselfish with others") big_8 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Can be somewhat careless") big_9 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Is relaxed, handles stress well") big_10 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Is curious about many different things") big_11 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Is full of energy") big_12 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Starts quarrels with others ") big_13 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Is a reliable worker") big_14 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Can be tense") big_15 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Is ingenious, a deep thinker") big_16 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Generates a lot of enthusiasm") big_17 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Has a forgiving nature") big_18 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Tends to be disorganized") big_19 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Worries a lot") big_20 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Has an active imagination") big_21 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Tends to be quiet") big_22 = models.IntegerField(choices=[1, 2, 3, 4, 5], widget=widgets.RadioSelectHorizontal(), label="Is generally trusting")