keypressed...
Jp Calderone
exarkun at intarweb.us
Sun Feb 9 20:53:31 EST 2003
On Mon, Feb 10, 2003 at 02:12:01AM +0100, gabor wrote:
> hi,
>
> i need something like this:
> -------------------------------------------
> while True:
> if keypressed():
> key = getPressedKey()
> dosomething(key)
> --------------------------------------------
>
> are there any functions for that ( keypressed, getpressedkey )?
>
Not any builtin functions. Most (all?) GUI toolkits provide a way to get
this behavior, though, and so does curses, afaik.
Jp
--
C/C++/Java/Perl/Python/Smalltalk/PHP/ASP/XML/Linux (User+Admin)
Genetic Algorithms/Genetic Programming/Neural Networks
Networking/Multithreading/Legacy Code Maintenance/OpenGL
See my complete resume at http://intarweb.us:8080/
--
up 1 day, 6:28, 2 users, load average: 0.06, 0.25, 0.32
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030209/bf004e61/attachment.sig>
More information about the Python-list
mailing list