Skip to content

Commit

Permalink
RF: Only define nButtons in backends where it's useful
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed Nov 23, 2023
1 parent dbdb199 commit 0e52f04
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions psychopy_bbtk/components/tpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def getParams(self):
# define order
order = [
"serialPort",
"bbtkNButtons"
]
# define params
params = {}
Expand Down Expand Up @@ -49,10 +50,15 @@ def getPorts():
"Serial port to connect to"
)
)
# define depends
depends = []
self.params['bbtkNButtons'] = Param(
10, valType="code", inputType="single", categ="Device",
label=_translate("Num. buttons"),
hint=_translate(
"How many buttons this button box has."
)
)

return params, order, depends
return params, order

def addRequirements(self):
"""
Expand Down

0 comments on commit 0e52f04

Please sign in to comment.