Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generated by OpenSesame 0.27.2~pre4 (Frisky Freud)
- # Fri Apr 5 17:43:38 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 inline_script inline_script
- ___run__
- from libopensesame import widgets
- from random import shuffle
- # Create a list of row indices for the questions (1, 2, and 3)
- # and shuffle the list. When specifying the rows for the
- # questions, you can then use rows[0], rows[1], and rows[2], to
- # get a randomized order.
- rows = [1,2,3]
- shuffle(rows)
- form = widgets.form(self.experiment, cols=[1,2,1], rows=[1,1,1,1,1])
- title = widgets.label(form, text='Indicate how much you agree with the following statement')
- question1 = widgets.label(form, text='q1', center=False)
- question2 = widgets.label(form, text='q2', center=False)
- question3 = widgets.label(form, text='q3', center=False)
- ratingScale1 = widgets.rating_scale(form, var='question1', nodes=['Agree', "Don't know", 'Disagree'])
- ratingScale2 = widgets.rating_scale(form, var='question3', nodes=['Agree', "Don't know", 'Disagree'])
- ratingScale3 = widgets.rating_scale(form, var='question3', nodes=['Agree', "Don't know", 'Disagree'])
- form.set_widget(title, (0,0), colspan=2)
- form.set_widget(question1, (0,rows[0]))
- form.set_widget(question2, (0,rows[1]))
- form.set_widget(question3, (0,rows[2]))
- form.set_widget(ratingScale1, (1,rows[0]))
- form.set_widget(ratingScale2, (1,rows[1]))
- form.set_widget(ratingScale3, (1,rows[2]))
- form._exec()
- __end__
- set _prepare ""
- set description "Executes Python code"
- define sequence experiment
- run inline_script "always"
- define form_base form_base
- define notepad getting_started
- __note__
- Hi,
- Welcome to OpenSesame 0.27 "Frisky Freud"!
- If you are new to OpenSesame, you may wish to follow the tutorial,
- which can be found online.
- There are also many example experiments, which may help you to get
- started with creating your own. These can be found in the "examples"
- folder provided with OpenSesame or, again, online,
- For more information, please refer to OpenSesame documentation area:
- <http://osdoc.cogsci.nl/>
- And feel free to ask for help on the forum:
- <http://forum.cogsci.nl/>
- Have fun with OpenSesame!
- --
- Sebastiaan
- __end__
- set description "Some pointers to help you get started!"
- define sketchpad welcome
- set duration "keypress"
- set start_response_interval "no"
- set description "Displays stimuli"
- draw textline 0 0 "OpenSesame 0.27 'Frisky Freud'" center=1 color=white font_family="serif" font_size=32 font_italic=no font_bold=no show_if="always"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement