To simplify my question, I want the subjects to click on one of the two given images to indicate a choice. I defined two visual stimuli, display them, and the response is registered by mouse click on one of the stimuli.
image1 = visual.ImageStim(win = mywin, name = “image1”, image = “tropical3.jpg”, color = (1,1,1), size = [11,11], pos = (-15,4))
image2 = visual.ImageStim(win = mywin, image = “tropical4.jpg”, color = (1,1,1), size = [11,11],pos = (0,4))
The error message is “TypeError: isPressedIn() missing 1 required positional argument: ‘shape’”. Would really appreciate any help on this. Thanks so much!