If I have a script (process run.py) that will run 3 subprocesses A.py, B.py, C.py (3 scripts called at same time through process run.py). The operation is fine. However say in b.py i have a line such as (pref) How can i get subprocess of A.py and c.py to wait/pause for 5seconds, in order for user to enter y or
Tag: wait
How do I wait for a pressed key?
How do I make my python script wait until the user presses any key? Answer In Python 3, use input(): In Python 2, use raw_input(): This only waits for the user to press enter though. On Windows/DOS, one might want to use msvcrt. The msvcrt module gives you access to a number of functions in the Microsoft Visual C/C++ Runtime