enter key event in wxpython
Kartic
removethis.kartic.krishnamurthy at gmail.com
Tue Mar 1 06:36:48 EST 2005
Raghul said the following on 2/28/2005 11:59 PM:
> hi,
> I am developing a jabber client.What I need is whrn i enter text in
> the text area and when I press return key. The following text should be
> send.I found the way to send the message, the only thing is I want to
> handle the enter key event.how to do this? so that when i press enter
> key, The key id or the event to be handled. Help me pls.
>
Take a look at the KeyEvents demo code under Processes and Events of the
wxPython Demo application.
In a nutshell, you have to handle the KEY_DOWN and KEY_UP events for the
window.
Thanks,
-Kartic
More information about the Python-list
mailing list