Skip to content
Permalink
Browse files
BF: Builder PsychoJS code for text components formatted badly
The units parameter was being given additional quote symbols
leading to a syntax error (only happened when not inheritting
from default so wasn't noticed before)
  • Loading branch information
peircej committed Jun 15, 2017
1 parent 2dcadd0 commit b399a50e36b79d512c73c98050fa59c0f433e681
Showing with 1 addition and 1 deletion.
  1. +1 −1 psychopy/app/builder/components/text/__init__.py
@@ -124,7 +124,7 @@ def writeInitCodeJS(self, buff):
if self.params['units'].val == 'from exp settings':
unitsStr = ""
else:
unitsStr = "units:'%(units)s', " % self.params
unitsStr = "units : %(units)s, " % self.params
# do writing of init
# replaces variable params with sensible defaults
inits = getInitVals(self.params, 'PsychoJS')

0 comments on commit b399a50

Please sign in to comment.