[wxPython] How to prevent duplicity in wxTextCtrl

Hi
I have wxTextCtrl control in my application and a user can add text
in format
LastName-->FirstName
LastName must be unique but FirstName can be repeated in this
wxTextCtrl control.

For example:
There can be

Smith-->John
Cambell-->John

But not

Smith-->John
Smith-->Joan

I have following questions:
1. How can I find a particular LastName in this wxTextCtrl control ?
2. How can I replace LastName-->FirstName for given(found)
LastName?
3. Or is there a better control for that task

Thank you very much for help

Ladislav

I have following questions:
1. How can I find a particular LastName in this wxTextCtrl control ?
2. How can I replace LastName-->FirstName for given(found)
LastName?
3. Or is there a better control for that task

I'm not quite sure what you are asking for, but perhaps using a validator
would give you what you need. It can either validate on a character by
character basis, or only when the dialog is completed.

You can use GetValue and SetValue to get or change the contents of the text
control.

ยทยทยท

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