[wxPython] event "wxTextCtrl loses focus"?

I would like to present a data input form
using wxPython. E.g., using wxTextCtrl:

    parameter 1 _____________
    parameter 2 _____________

The underlines represent the input fields.

I would like to do some validation for
each parameter when the user hits Enter
or switches between the input fields.
I do not want to do this validation while
the user is still typing.

I figured out how to use
EVT_TEXT_ENTER(self, ID, self.EvtText)
to trigger the validation when the users
hits enter. Unfortunately, my experiments
with EVT_KILL_FOCUS have not been
successful. How can I register an
event handler that gets called when a
wxTextCtrl input field loses focus?

Are there wxPython applications with
data input forms that I could use for
learning?

Thanks for any help!
        Ralf

--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.

Ralf Grosse-Kunstleve wrote:

I would like to present a data input form
using wxPython. E.g., using wxTextCtrl:

    parameter 1 _____________
    parameter 2 _____________

The underlines represent the input fields.

I would like to do some validation for
each parameter when the user hits Enter
or switches between the input fields.
I do not want to do this validation while
the user is still typing.

I figured out how to use
EVT_TEXT_ENTER(self, ID, self.EvtText)
to trigger the validation when the users
hits enter. Unfortunately, my experiments
with EVT_KILL_FOCUS have not been
successful. How can I register an
event handler that gets called when a
wxTextCtrl input field loses focus?

EVT_KILL_FOCUS is the right event to use, connect it to any
control like this:

EVT_KILL_FOCUS(<Control>, <Method>)

···

--
Riaan >>> a='a=%s;a%%`a`';a%`a`
___________________________________________________
Boa Constructor - RAD GUI building IDE for wxPython
     http://boa-constructor.sourceforge.net