Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generated by OpenSesame 0.27.2~pre1 (Frisky Freud)
- # Thu Mar 14 14:07:50 2013 (posix)
- # <http://www.cogsci.nl/opensesame>
- set foreground "white"
- set subject_parity "even"
- set description "Default description"
- set title "New experiment"
- set sampler_backend "legacy"
- set coordinates "relative"
- set height "768"
- set mouse_backend "xpyriment"
- set width "1024"
- set compensation "0"
- set keyboard_backend "legacy"
- set background "black"
- set subject_nr "0"
- set canvas_backend "xpyriment"
- set start "experiment"
- set synth_backend "legacy"
- define logger logger
- set description "Logs experimental data"
- define sequence experiment
- run form_base "always"
- run inline_script "always"
- run logger "always"
- define inline_script inline_script
- ___run__
- # Make a list of all the response values:
- responseList = [self.get("question1"), self.get("question2"), self.get("question3")]
- while True:
- # If one or more of the response have the value 'None':
- if 'None' in responseList:
- # Rerun the item (after preparing it):
- exp.items['form_base'].prepare()
- exp.items['form_base'].run()
- # Check the responses again:
- responseList = [self.get("question1"), self.get("question2"), self.get("question3")]
- # Else, the experiment advances normally.
- else:
- break
- __end__
- ___prepare__
- __end__
- set description "Executes Python code"
- define form_base form_base
- set rows "1;1;1;1;1"
- set cols "1;1"
- widget 0 0 2 1 label text="Indicate how much you agree with the following statements"
- widget 0 1 1 1 label center="no" text="Forms are easy"
- widget 1 1 1 1 rating_scale var="question1" nodes="Agree;Don't know;Disagree"
- widget 0 2 1 1 label center="no" text="I like data"
- widget 1 2 1 1 rating_scale var="question2" nodes="Agree;Don't know;Disagree"
- widget 0 3 1 1 label center="no" text="I like questionnaires"
- widget 1 3 1 1 rating_scale var="question3" nodes="Agree;Don't know;Disagree"
- widget 0 4 2 1 button text="Next"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement