[wxPython-users] Re: PyValidator and floats, howto?
Robin Dunn
robin at alldunn.com
Mon Jan 22 13:19:56 PST 2007
Basil Shubin wrote:
>
> But what is purpose of Validator method after all?
If the control is on a dialog then the Validate method is called
automatically when the Ok button is pressed. If any of the validators
on the dialog return false from their Validate method then the Ok button
will not succeed and the dialog will not be dismissed. If you are not
using a dialog then to be able to use the validators' Validate method
you need to call the parent window's Validate method at some point and
check the return value yourself.
Please see the demo and the book for more details and examples.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list