placid wrote:
> is there a way to do this, wait for user input but dont block?

Hi,

The msvcrt module should do what you want. Here is a sample:

import msvcrt

chr = 0
while chr != 'q':
     """ keep printing text """
     if msvcrt.kbhit():
         chr = msvcrt.getch()


Keep in mind that this will only work on windows.

-Farshid
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to