wxTextCtrl beeps when typing ENTER

Hello all,
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?
Thanks for your time.
Arye.

Arye Halioua wrote:

Hello all,
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?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

> 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!
Thanks for your answer.
Arye.

Arye Halioua wrote:

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()

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!