Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
ButtonBoxes
(view source)
Revision as of 09:28, 7 August 2015
17 bytes removed
,
09:28, 7 August 2015
→Python/PsychoPy
Line 180:
Line 180:
=== Python/PsychoPy ===
=== Python/PsychoPy ===
−
Download this site package to use the buttonbox: [https://pypi.python.org/pypi/RuSocSci rusocsci]
+
Download this site
-
package to use the buttonbox: [https://pypi.python.org/pypi/RuSocSci rusocsci]
Example using buttons from the buttonbox in Python:
Example using buttons from the buttonbox in Python:
Line 211:
Line 211:
bb = buttonbox.Buttonbox()
bb = buttonbox.Buttonbox()
−
#
wait for
a
single button press
+
#
send
a
marker
bb.sendMarker(val=100) #This is your marker code, range code 1-255
bb.sendMarker(val=100) #This is your marker code, range code 1-255
</syntaxhighlight>
</syntaxhighlight>
E.vandenberge
Bureaucrats
,
Administrators
1,340
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Help
About
About the TSG
About this Wiki
FAQ
Disclaimer
Survey
Customer Survey
Tools
Special pages
Printable version