FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Python -need a getch() / kbhit() equivalent





Pyth0nfre4k
Hi all!
I am working on python 2.6.5.....and looking for a function or a code,
which is equivalent to the 'getch() or kbhit()' function available in 'C' in the 'Python programming language'.....for both linux and windows platform.

Actually i want to be able to do events in python on just key press
(no need to press enter key after getting an input)
so that i could make programs and games which are more dynamic and look more interactive to users.....
albuferque
Maybe these recipes could help:

getch

http://code.activestate.com/recipes/134892/

kbhit

http://effbot.org/librarybook/msvcrt.htm
Related topics
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.