Mouse click crashes program during stimulus presentation
How can the mouse be disabled so that a mouse click during stimulus presentation doesn't crash the program?
Here's the code for the stim presentation:
def studyOnly(pairsDict, interference=False):
for A, B, C, timesRecalled, timesTrained in pairsDict:
presentPairs = canvas(exp)
if interference:
presentPairs.text(A + '-' + C)
else:
presentPairs.text(A + '-' + B)
t1 = presentPairs.show()
# Present the word pair for 7000ms
self.sleep(soISI)
Many thanks!
Comments
Hi,
As long as you don't explicitly use the mouse, then mouse clicks should have no effect—certainly not crash the experiment! What do you mean exactly? In what sense does the experiment crash, and what kind of error message do you get?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!