presenting canvas till keypress
I'm trying to present dynamic instructions to the user (taken from xlsx file, they differ by gender), hence i am creating a dictionary in python and then trying to present it via canvas, again with python (created in prepare phase). Each instruction should remain on the screen till any key (let's say 'space') is pressed, and then move on the next one.
For canvas to stay, i figured out i need some "delay", so i used clock.sleep(1000) in run phase. That was a complete guess and it worked, but i don't know why. After that i used keyboard (created in prepare phase) to proceed to the other canvas.show(), but now there was no need in clock. I'm a bit confused.
I've been searching the documentation and the forum for a while, but i don't find anything concrete (especially for v3.2). attaching the part of the code for two instructions screens commands.
any help is appreciated,