Processing.py-Bugs icon indicating copy to clipboard operation
Processing.py-Bugs copied to clipboard

Python input command

Open yousefkhalil0311 opened this issue 6 years ago • 1 comments

Using the input command, x = input("Enter age: ")

sends a prompt and opens the display but does not allow for user input

yousefkhalil0311 avatar Feb 21 '19 01:02 yousefkhalil0311

Hi @yousefkhalil0311 !

Processing never had this "textual input" method, and as far as I know, Processing Python Mode never implemented a working input().

As many educators that work with Python told me they miss it, I have shown them this workaround: https://github.com/villares/py.processing-play/blob/c1b30bb1b42f926d9cf56e6e2d6b6e3cc0217bc5/advanced_and_window_stuff/input_py/input_py.pyde

I hope this helps you.

Cheers, Alexandre

villares avatar Feb 27 '19 14:02 villares