Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Getting text input on canvas


I'm not sure if this has been asked before (so far I couldn't find it). If yes, please direct me to the right discussion.

My question is whether or not it is possible to get raw input on Canvas. I tried the Python function raw_input() but it returned EOF error. I don't want to use a form, because what I want to do is to animate a stimulus and getting input at the same time on the same canvas.

Your help is appreciated!



  • Hi,

    It is possible, but rather complicated. You have to design a while loop in which you repeatedly cycle over stimulus presentation/animation and response collection. Furthermore, you have to write code to update the canvas with the raw input manually, as there is no specific function for that. Finally, please note that you can't use raw_input as a function because it will sample for the input in the debug window not on the canvas. So you have to design it yourself.

    Hope this helps,


    Thanked by 1intanwardhani
Sign In or Register to comment.