From: Kevin B. <kb...@ca...> - 2002-02-11 16:13:21
|
Frank, You're pretty well limited in Jython to what you can do in Java. This means you can: - use ENTER as the key to end the loop (easiest, most portable) (call raw_input in a separate thread) - write a GUI that detects the keypress event (second easiest, second most portable) - call native code that detects the keypress (hardest, least portable, but most similar to what you're doing in CPython) kb Frank Cohen wrote: > > I'm writing a Jython program that repeats an operation over and over again. > I'd like to sense for any key on the keyboard being pressed to end the loop. > Python (C) on Windows has the msvcrt library which provides some useful MS > Visual C functions. Is there such a thing for Jython? -Frank > > -- > Frank Cohen, CEO, PushToTest, www.pushtotest.com, phone: 408 374 7426 > Come to PushToTest for free open-source Active Security solutions that test, > monitor and automate Web Service systems for functionality, scalability and > performance. > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |