OS: a) Win10 b) Ubuntu 18.04
PsychoPy version: a) 3.15 b) 3.20
Standard Standalone?: a) y b) installed from wheel into system python
What are you trying to achieve?: Manipulate position of ticks/labels in slider component
What did you try to make it work? Tried to insert custom component
What specifically went wrong when you tried that? Commands are ignored
I want to obtain ratings through a slider, where the slider line has delimiters at both ends, but no ticks inbetween, even though there are five labels distributed along the line to provide some orientation.
I used ticks at 0 and 1 and inserted the following custom code into “Begin Routine”:
‘’‘Evaluation_4.labelLocs = [0.1, 0.3, 0.5, 0.7, 0.9]’’’
Evaluation_4 is the name of the slider component. This was ignored, though. The labels were all placed below the two ticks at 0 or 1.
I also tried it the other way round, i.e. I first entered many tick positions in builder and then tried to override them with custom code defining just the two end ticks, but that had no effect either.
So given that a code component can achieve what I want, how should it look?