hello,
I'm trying to simulate an RS232 terminal,
So added a few TextCtrl to a window,
one for the RS232 receiver,
one for the RS232 transmitter,
and now I need to perform an action,
whenever a character is entered in the TextCtrl.
The best event I could find in the documentation
wxEVT_DISPLAY_CHANGED = 10104
Is this the best event to detect ?
Are there alternatives ?
thanks,
Stef Mientki
Kamer van Koophandel - handelsregister 41055629 / Netherlands Chamber of Commerce - trade register 41055629
In one of my apps I use a wx.PyValidator to examine each character as
it is entered.
Jerry
···
On Jun 8, 2007, at 9:04 AM, Stef Mientki wrote:
hello,
I'm trying to simulate an RS232 terminal,
So added a few TextCtrl to a window,
one for the RS232 receiver,
one for the RS232 transmitter,
and now I need to perform an action,
whenever a character is entered in the TextCtrl.
The best event I could find in the documentation
wxEVT_DISPLAY_CHANGED = 10104
Is this the best event to detect ?
Are there alternatives ?
thanks,
Stef Mientki
Kamer van Koophandel - handelsregister 41055629 / Netherlands Chamber of Commerce - trade register 41055629
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
wxEVT_TEXT is sent by a wx.TextCtrl every time a character is entered. There can be some exceptions to this if certain characters (like the Tab key) are intercepted by other windows… there are mentions of this in the docs for wx.TextCtrl… style wxTE_PROCESS_TAB or not. But basically one character entered causes one wxEVT_TEXT sent.
also useful, wxEVT_TEXT_ENTER is sent when the Enter key is pressed (as long as the wx.TextCtrl is given the style wxTE_PROCESS_ENTER).
···
On 6/8/07, Stef Mientki S.Mientki@ru.nl wrote:
and now I need to perform an action,
whenever a character is entered in the TextCtrl.
The best event I could find in the documentation
wxEVT_DISPLAY_CHANGED = 10104
Is this the best event to detect ?
Are there alternatives ?