I guess the problem was that I was calling Validator on self and on
the input control, but never on panel. I don't understand why it
should be called on panel though, instead of the control itself. I
think the recursive flag only needs to be set if you call the method
on a parent control (such as self or panel, I guess), but I would
think it would work without the flag if called from the input control.
···
---------- Forwarded message ----------
From: "Werner F. Bruhin" <werner.bruhin@free.fr>
To: wxPython-users@lists.wxwidgets.org
Date: Sat, 29 Jul 2006 09:05:31 +0200
Subject: Re: [wxPython-users] How to get a validator to work in a frame
Hi John,I got it to work, but frankly I don't understand why it did not work in
the first place.Kept a reference to the panel, and then called validate on the panel.
Ah, maybe that is the problem, maybe you need to use the
"wxWS_EX_VALIDATE_RECURSIVELY" on your frame.