Meta:Samples/Software: Difference between revisions
Jump to navigation
Jump to search
| Line 34: | Line 34: | ||
===Template=== | ===Template=== | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="python" line> | ||
#!/usr/bin/env python | #!/usr/bin/env python | ||
Revision as of 10:49, 28 April 2015
Introduction.
Features
This software is made to do this, it has these unique selling points:
- Feature 1[1]
- Feature 2
- Feature 3
Requirements
- Microsoft Windows XP or later.
- Intel Core 2 Duo E8600 or higher.
- Python
Installation
Windows 7 64-bit
- Step 1
- Step 2
- Step 3
Configuration
General settings.
Usage
Templates and how-to's go here.
Template
#!/usr/bin/env python
# import psychopy and rusocsci
from psychopy import core, visual
from rusocsci import buttonbox
## Setup Section
win = visual.Window(monitor="testMonitor")
bb = buttonbox.Buttonbox()
text = visual.TextStim(win, "Press a button on the buttonbox")
## Experiment Section
# show text
text.draw()
win.flip()
# wait for response
b = bb.waitButtons()
# show response
text.setText("you pressed: {}".format(b))
text.draw()
win.flip()
core.wait(5)
## Cleanup Section
core.quit()
See Also
References
- ↑ Some reference