>>>I am using wxPython 2.3.2.1 with python 2.2.1 on XP.
>>>When typing ENTER on a single line wxTextCtrl, I hear a BEEP.
>>>I have seen a similar question posted to the wxWindows mailing list.
>>>Any ideas on how to get rid of that annoying BEEP?
>>
>>Is the wxTextCtrl on a wxPanel or on some other window that doesn't have
>>wxTAB_TRAVERSAL style? Do you use the wxTE_PROCESS_ENTER style but
>>don't have a handler for it?
>
>
> Hi!
> wxTAB_TRAVERSAL does not seem to have an effect.
> I do use wxTE_PROCESS_ENTER with an associated handler that works great
> except for that annoying BEEP!Try this: Add a handler for EVT_CHAR and if the keycode is anything but
13 then call event.Skip()
Thanks for looking into this again,
I already tried exactly that with no success but I noticed that there is no
BEEP when catching key motion with EVT_KEY_DOWN
instead and not skipping keycode 13.
G'day, Arye.