wxComboBox and a validator

Hi all,

I had created a wxComboBox and I want the text entered in the combobox to be limited to numeric only. I don't want to do this via the EVT_TEXT event, but via a validator. In other words I want to do this through the EVT_CHAR event handled in the validator. I tried to do the same thing as shown in the demo (in the validor example) but with no success. What should I do?

Thanx for your help.

Ilia Kats wrote:

Hi all,

I had created a wxComboBox and I want the text entered in the
combobox to be limited to numeric only. I don't want to do this via
the EVT_TEXT event, but via a validator. In other words I want to do
this through the EVT_CHAR event handled in the validator. I tried to
do the same thing as shown in the demo (in the validor example) but
with no success. What should I do?

Give more details and perhaps a working sample that shows the problem.

ยทยทยท

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