Questions on getting variables from the trial table and image position in forms
Hi,
I am new to opensesame and trying to set up dimensional card change sorting task. I end up with trying to write in Python. But I encountered two problems.
I would like to use the [target_pic] as the variable for the image path. But I don't know how to do it in python. What I had right now is: image = ImageWidget(path=pool['RedBear.png'], adjust=False, frame=False)
If I want to replace ['RedBear.png'] to something like what works in opensesame code ['[target_pic].png'], what codes should I add here?Instead of using columns and rows to set the position of the images or image buttons, is there anyway to set the exact x- and y-coordinates for each image positions?
I am uploading my experiment here. Hope I can get some help on these!!! Thanks in advance!
Thanks,
Joleen
Comments
Hey Joleen,
Regarding your first question you can add the extension (.png) directly into the target_pic column (like RedBear.png).
Then use:
For the second question honestly I do not know.
Best,
Sylvain
Thank you so much! It works!
Joleen