jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

Python input command #261

Open yousefkhalil0311 opened 5 years ago

yousefkhalil0311 commented 5 years ago

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

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

villares commented 5 years ago

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