kaens a écrit :
> On 5/30/07, Bruno Desthuilliers
> <[EMAIL PROTECTED]> wrote:
>> Benedict Verheyen a écrit :
>> > [EMAIL PROTECTED] schreef:
>> >> On 30 mai, 04:14, Mike <[EMAIL PROTECTED]> wrote:
>> >>> Are there key listeners for Python? Either built in or third party?
>> >>
>> >> What is a "key listener" ?
>> >>
>> (snip)
>> > In google, the first link is a link to the java sun home page.
>> > The first sentence on that page: "Key events indicate when the user is
>> > typing at the keyboard."
>>
>> I do know what's a "key listener" in Java, thanks !-)
>>
>> My question was supposed to have side effects - like the OP asking
>> himself if he was really asking the right question.
>>
>> Regards too.
>> -- 
>> http://mail.python.org/mailman/listinfo/python-list
>>
> 
> 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.

Which would have been a much better way to express the question.

> 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?

Wrong. *You* can deduce this from the OP question because you know Java 
(and more exactly : GUI programming in Java).

As far as I'm concerned, a 'key listener' could be something observing 
adding/deletion of key/value couples in a dict !-)

> 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

Exactly. Which may lead the OP to the conclusion that not everybody 
knows Java GUI programming, and that it may be better to ask in more 
general terms...

Also, and FWIW, there are words that name very different concepts in 
different languages. And I don't know each and every concept of each and 
every language in the world (perhaps you do ?). So, just because I know 
what name X means in langage Y doesn't necessarily imply the OP isn't 
thinking of what it means in langage ZZ...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to