simple, probably stupid question: single key in console / idle
2008-04-01 08:53:52 GMT
import msvcrt
while( 1 ):
if msvcrt.kbhit():
print "key seen"
help = msvcrt.getch()
#if( help < 255 ):
print help, ord( help )
if( ord( help ) == 27 ):
print "cancel"
break
Mit freundlichen Grüßen
Matthias Sommer
Entwicklung
-
Firmware/Elektronik
______________________________________________
Am Vogelherd 67
D 98693 Ilmenau, Germany
Tel.: +49 (0) 36 77 862-194
Fax: +49 (0) 36 77 862-199
E-Mail: matthias.sommer <at> wincor-nixdorf.com
www.wincor-nixdorf.com
Sitz der Gesellschaft: Paderborn
Registergericht Paderborn HRB 3523
Geschäftsführer: Eckard Heidloff, Jürgen Wilde, Wolfgang Keller
Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE243233085
Diese E-Mail enthält vertrauliche Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
_______________________________________________ Tutor maillist - Tutor <at> python.org http://mail.python.org/mailman/listinfo/tutor
RSS Feed