Group: Forum Members
Posts: 13,
Visits: 79
|
Dear all,
I ran into a slight problem and could not find a straightforward solution on the forum. I am drawing multiple items on the screen for each trial, the horizontal positions are in a list and picked at random, however all the shape also need a vertical position and I could not see how to make a list with tuple, something like: list = [(x1, y1), (x2, y2), etc]
At the moment I wrote an expression that checks all the possible horizontal positions and matches the correct vertical position to it, so that each picture has the correct combination of vertical position + horizontal position, I was wondering if there might be an easier way to combine these values? Any suggestions would be great,
Roelof
PS: Attached a simplified example that shows the basic structure, the actual experiment uses set sizes 5,7,9, with all different coordinates, at which point writing the expressions becomes more arduous
|