Try not calling event.Skip if the special char is matched, i.e. put
an else in before it.
The problem is that you are processing it, (clear text control),
then allowing it to be default processed.
Steve
···
On 07/01/13 08:07, Leon wrote:
hi!
I have a Text entry field (TextCtrl).
I am waiting for a special character (Barcode scanning) at the end
of the text entered.
The TextCtrl should be cleared after the special character "(" is
entered.
The problem: the TextCtrl is cleared, but afterwards the special
character is entered. So the TextCtrl does not stay empty!
Has anybody got an idea, what I am doing wrong?
Here my code:
self.textCtrl1 = wx.TextCtrl(id=wxID_FRAME2TEXTCTRL1,