When is PyValidator.Validate() triggered?

I am using a PyValidator for a TextCtrl.
I want to validate that the value is a float/int.

When is PyValidator.Validate() triggered?
It doesnt seem to be called at all.

Thanks,
Steven.

Steven Pang wrote:

I am using a PyValidator for a TextCtrl.
I want to validate that the value is a float/int.

When is PyValidator.Validate() triggered?
It doesnt seem to be called at all.

On Dialogs it will be called when the default event handler for the wx.ID_OK button is run. For non-dialogs it will be called when the panel's Validate method is called.

ยทยทยท

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