Key Listeners
Benedict Verheyen
benedict.verheyen at gmail.com
Wed May 30 10:33:52 EDT 2007
kaens schreef:
<snip>
>>
>
> What, he wants to know if there's a way in python to capture
> keystrokes, and do something with them depending on what they are.
>
> I mean, it's very unlikely that you would ask for something called a
> "key listener" if you didn't want to do something like:
>
> if keypress == 'a':
> do somem
>
> right? Even if you're looking to do it the java way, all of the
> listener functionality more or less boils down to "wait for and report
> keys being pressed".
>
> He could have been less ambiguous, but I don't think that he was
> asking the wrong question per se.
>
> Not to mention asking the OP "what's a key listener" isn't going to
> make them think about the question they asked - it makes it seem like
> you don't know what a key listener is (and frankly, I think that if
> you have done any work with doing stuff on different keystrokes,
> you'll figure out what is meant by key listener pretty quickly, even
> if you haven't heard the term before)
That's how it came across for me too. Couldn't have said it better kaens.
Benedict
More information about the Python-list
mailing list