![]() NewLetter = visual.TextStim(win=win, name='letterA', Then in the eachframe tab we monitor if each thing has been clicked and if we have we remove it from the clickable list and draw a new stimulus: for stim in clickableStimuli: In the begin routine tab we define a list of things that can be clickable, along with an empty list of things already clicked: clickableStimuli = Your approach is in the right direction that’s for sure! This demo does something similar but with letters: It registered as a click, causing the counter to go up and a blank space to appear where the next sequential photo should be. What specifically went wrong when you tried that?: When I tried this, I was still able to double click the photo. So, a participant could still theoretically click the same photo and have psychopy register it as a valid click. It just prevents the object from showing up. What did you try to make it work?: I’ve tried simply removing the object from the list of photos that the loop pulls from, but this doesn’t prevent the object from being clickable. > if len(selAmouse.clicked_name) = x and expInfo = 'Female': > color=, colorSpace='rgb', opacity=None, > if len(selAmouse.clicked_name) = x and expInfo = 'Male': Here is the Every Frame tab: > for x in range(0,6): `This is the code I have in the Begin Routine tab:` With that said, I am having problems with preventing double clicks on the photos. I am totally open to suggestions and feedback. So, it has been a bit of struggle and my code component might not be the most effective and clean way of writing code. This is my first project and I only started learning a few weeks ago. Screen Shot at 3.17.01 PM 2560×1600 379 KBĪs a disclaimer, I am incredibly new to Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |