another validator question

David C. Fox wrote:

IIRC, when the user hits OK in a dialog, the dialog calls the
Validate
method of the validator of each control in the dialog. See the
wxValidator overview in the wxWindows documentation.

[...]

Ah, that explains things! (I think...) I have been using the
control on a panel, not a dialog, so .Validate() wasn't getting
called. When I put one on a dialog, voila! It fires.

(I forgot about the "overview" section; I was looking at the
doc for .Validate(), and it said nothing about this-- my bad.)

Thank you for the clarification!
/Will Sadkin
Parlance Corporation

Will Sadkin wrote:

David C. Fox wrote:

IIRC, when the user hits OK in a dialog, the dialog calls the Validate method of the validator of each control in the dialog. See the wxValidator overview in the wxWindows documentation.

[...]

Ah, that explains things! (I think...) I have been using the
control on a panel, not a dialog, so .Validate() wasn't getting called. When I put one on a dialog, voila! It fires.

(I forgot about the "overview" section; I was looking at the doc for .Validate(), and it said nothing about this-- my bad.)

You can also cause all the controls to validate by calling the panel's Validate() method.

ยทยทยท

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