Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16506

keyboard library interfered with python input

$
0
0

When I press on "p" it triggers input with "p" in the start :

import keyboarddef print_your_name():    x = input("Enter Your Name: ")    print(x)keyboard.add_hotkey('p', print_your_name)keyboard.wait("esc")

output:

Enter Your Name:p

Is there any way to send a clean input to the user?


Viewing all articles
Browse latest Browse all 16506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>